:root {
  color-scheme: dark;

  --c-canvas: #070b13;
  --c-canvas-soft: #09101b;
  --c-surface: #0d1522;
  --c-surface-elevated: #111c2b;
  --c-surface-strong: #162235;

  --c-line: rgba(160, 180, 214, 0.12);
  --c-line-soft: rgba(160, 180, 214, 0.08);
  --c-line-strong: rgba(174, 195, 232, 0.22);
  --c-edge: rgba(255, 255, 255, 0.06);

  --c-ink: #f4f7fc;
  --c-ink-soft: #d6dde9;
  --c-body: #a7b2c3;
  --c-muted: #78859a;
  --c-faint: #526076;

  --c-primary: #4b83f7;
  --c-primary-hover: #6597ff;
  --c-primary-active: #376fde;
  --c-primary-soft: rgba(75, 131, 247, 0.14);

  --c-cyan: #32bed0;
  --c-up: #35c49a;
  --c-down: #f16461;

  --font-display: "Manrope", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Manrope", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-number: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1200px;
  --container-media: 1320px;
  --section-space: 120px;

  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-control: 12px;
  --radius-card: 18px;
  --radius-media: 24px;

  --ease: cubic-bezier(0.2, 0.72, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  appearance: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

figure,
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

.shell {
  width: min(var(--container), calc(100% - 96px));
  margin: 0 auto;
}

.hero .shell {
  width: min(var(--container-media), calc(100% - 64px));
}

.skip-link {
  position: fixed;
  z-index: 220;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--c-ink);
  color: var(--c-canvas);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-progress {
  position: fixed;
  z-index: 180;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--c-primary);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 160;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 11, 19, 0.2);
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  background: rgba(7, 11, 19, 0.88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand img {
  width: auto;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a,
.header-link {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--c-body);
  font-size: 13px;
  font-weight: 500;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.site-nav a:hover,
.header-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--c-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  min-width: 42px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  color: var(--c-body);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.menu-toggle:hover {
  border-color: var(--c-line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--c-ink);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--c-primary);
  border-radius: var(--radius-control);
  background: var(--c-primary);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 160ms var(--ease),
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  border-color: var(--c-primary-hover);
  background: var(--c-primary-hover);
  transform: translateY(-1px);
}

.button:active {
  border-color: var(--c-primary-active);
  background: var(--c-primary-active);
  transform: none;
}

.button:focus-visible,
.menu-toggle:focus-visible,
.site-nav a:focus-visible,
.mode-tabs button:focus-visible,
.capability-tabs button:focus-visible,
.support-card:focus-visible {
  outline: 2px solid var(--c-primary-hover);
  outline-offset: 3px;
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
}

.button-secondary {
  border-color: var(--c-line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--c-ink-soft);
}

.button-secondary:hover {
  border-color: rgba(174, 195, 232, 0.34);
  background: var(--c-surface-elevated);
}

.button-block {
  width: 100%;
}

.button-disabled,
.button-disabled:hover {
  border-color: var(--c-line);
  background: var(--c-surface);
  color: var(--c-faint);
  cursor: default;
  transform: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: clip;
  padding: 156px 0 112px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 22% 20%,
      rgba(25, 91, 151, 0.34) 0%,
      rgba(25, 91, 151, 0.12) 34%,
      transparent 62%
    ),
    radial-gradient(
      ellipse at 82% 34%,
      rgba(83, 65, 153, 0.28) 0%,
      rgba(83, 65, 153, 0.09) 36%,
      transparent 65%
    ),
    var(--c-canvas);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 240px;
  background: linear-gradient(to bottom, transparent, var(--c-canvas));
  content: "";
  pointer-events: none;
}

.hero-atmosphere {
  position: absolute;
  z-index: -1;
  top: 38%;
  left: 50%;
  width: min(1120px, 78vw);
  height: 380px;
  border-radius: 50%;
  background: rgba(43, 89, 176, 0.07);
  filter: blur(90px);
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-inner {
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  color: var(--c-primary-hover);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 23px auto 0;
  font-family: var(--font-display);
  font-size: clamp(50px, 5.65vw, 72px);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  background: linear-gradient(
    100deg,
    #e8fbf6 0%,
    #c5e8e1 24%,
    #82b4bb 58%,
    #416b92 100%
  );
  background-clip: text;
  color: #b7d5d5;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[lang="zh-CN"] .hero h1 span {
  white-space: nowrap;
}

.hero-lede {
  max-width: 710px;
  margin: 27px auto 0;
  color: var(--c-body);
  font-size: 17px;
  line-height: 1.72;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-copy .hero-actions .button {
  position: relative;
  width: 178px;
  min-height: 50px;
  padding: 0 16px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.16);
  letter-spacing: -0.01em;
  transition:
    transform 180ms var(--ease),
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.hero-copy .hero-actions .button::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    transparent 42%
  );
  content: "";
  pointer-events: none;
}

.hero-copy .hero-actions .button:hover {
  transform: translateY(-2px);
}

.hero-copy .hero-actions .button:active {
  transform: translateY(0);
}

.hero-download-button {
  gap: 9px;
  border-color: rgba(139, 181, 255, 0.72);
  background: linear-gradient(180deg, #5d91ff 0%, #477cf0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 34px rgba(45, 101, 220, 0.24);
}

.hero-download-button:hover {
  border-color: rgba(174, 207, 255, 0.9);
  background: linear-gradient(180deg, #69a0ff 0%, #5086f5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 18px 38px rgba(45, 101, 220, 0.3);
}

.hero-copy .hero-actions .button-secondary {
  border-color: rgba(139, 165, 212, 0.32);
  background: linear-gradient(
    180deg,
    rgba(29, 39, 64, 0.86),
    rgba(18, 26, 46, 0.82)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.14);
  color: #e6edf8;
}

.hero-copy .hero-actions .button-secondary:hover {
  border-color: rgba(156, 184, 232, 0.5);
  background: linear-gradient(
    180deg,
    rgba(36, 49, 79, 0.94),
    rgba(22, 32, 55, 0.9)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

.button-platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-right: 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.button-platform-icons svg {
  width: 16px;
  height: 16px;
  fill: currentcolor;
  opacity: 0.92;
}

.button-platform-icons .button-platform-apple {
  width: 17px;
  height: 17px;
}

.hero-video-button {
  gap: 9px;
}

.button-play-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
}

.button-play-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.button-play-icon circle {
  fill: rgba(127, 164, 225, 0.08);
  stroke: currentcolor;
  stroke-width: 1.4;
}

.button-play-icon path {
  fill: currentcolor;
}

.hero-story {
  position: relative;
  margin-top: 64px;
}

.hero-product {
  position: relative;
  z-index: 2;
  width: min(100%, 1160px);
  margin: 0 auto;
}

.hero-product-glow {
  position: absolute;
  z-index: -1;
  right: 14%;
  bottom: 8%;
  left: 14%;
  height: 30%;
  border-radius: 50%;
  background: rgba(38, 87, 183, 0.16);
  filter: blur(78px);
}

.hero-laptop {
  position: relative;
}

.hero-story-annotations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hero-story-callout {
  min-width: 0;
}

.hero-story-label {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 15px 17px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-control);
  background:
    radial-gradient(circle at 12% 0%, rgba(75, 131, 247, 0.12), transparent 48%),
    rgba(13, 21, 34, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-story-label span {
  color: var(--c-primary-hover);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.hero-story-label strong {
  color: var(--c-ink-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.hero-story-leader,
.hero-story-target,
.hero-story-hint {
  display: none;
}

@media (min-width: 1180px) and (prefers-reduced-motion: no-preference) {
  .hero-story {
    height: max(1520px, 240vh);
  }

  .hero-product {
    position: sticky;
    top: 76px;
    display: grid;
    width: min(100%, 1160px, calc(100vw - 520px), calc((100vh - 104px) * 1.6296));
    height: calc(100vh - 92px);
    align-content: center;
  }

  .hero-story-annotations {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: block;
    margin: 0;
    pointer-events: none;
  }

  .hero-story-callout {
    position: absolute;
    inset: 0;
    min-height: 0;
    visibility: hidden;
    transition: visibility 0s linear 900ms;
  }

  .hero-story-callout.is-visible {
    visibility: visible;
    transition-delay: 0s;
  }

  .hero-story-label {
    position: absolute;
    overflow: hidden;
    width: clamp(188px, 16vw, 220px);
    min-height: 0;
    gap: 4px;
    padding: 10px 12px 11px;
    border-color: rgba(107, 168, 255, 0.3);
    border-radius: 8px;
    background:
      linear-gradient(90deg, rgba(83, 159, 255, 0.78), transparent 38%) top left / 100% 1px no-repeat,
      linear-gradient(270deg, rgba(83, 159, 255, 0.32), transparent 42%) bottom right / 100% 1px no-repeat,
      linear-gradient(135deg, rgba(12, 27, 48, 0.95), rgba(7, 15, 28, 0.92));
    box-shadow:
      0 16px 42px rgba(0, 0, 0, 0.3),
      inset 3px 0 0 rgba(78, 153, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition:
      opacity 340ms 820ms ease,
      transform 420ms 820ms var(--ease);
  }

  .hero-story-label::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -42%;
    width: 24%;
    background: linear-gradient(90deg, transparent, rgba(132, 202, 255, 0.16), transparent);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: skewX(-18deg);
  }

  .hero-story-callout.is-active .hero-story-label {
    border-color: rgba(108, 182, 255, 0.64);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.34),
      0 0 24px rgba(62, 139, 255, 0.08),
      inset 3px 0 0 rgba(91, 174, 255, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .hero-story-callout.is-active .hero-story-label::after {
    animation: hero-story-label-scan 900ms 1.02s ease-out 1 both;
  }

  .hero-story-callout.is-visible .hero-story-label {
    opacity: 0.64;
    transform: none;
  }

  .hero-story-callout.is-active .hero-story-label {
    opacity: 1;
  }

  .hero-story-callout.is-visible:not(.is-active) .hero-story-label {
    transition-delay: 0s;
  }

  .hero-story-label span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
  }

  .hero-story-label span::before {
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border: 1px solid rgba(147, 209, 255, 0.9);
    background: rgba(91, 176, 255, 0.72);
    box-shadow: 0 0 8px rgba(80, 169, 255, 0.72);
    content: "";
    transform: rotate(45deg);
  }

  .hero-story-label span::after {
    margin-left: auto;
    color: rgba(126, 169, 226, 0.58);
    content: "LIVE";
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.16em;
  }

  .hero-story-label strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-story-callout-charts .hero-story-label {
    top: 10%;
    right: calc(91% + 4px);
    transform: translateX(8px);
  }

  .hero-story-callout-plan .hero-story-label {
    top: 10%;
    left: calc(91% + 4px);
    transform: translateX(-8px);
  }

  .hero-story-callout-rules .hero-story-label {
    top: 48%;
    left: calc(91% + 4px);
    transform: translateX(-8px);
  }

  .hero-story-leader {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .hero-story-leader-track,
  .hero-story-leader-pulse {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .hero-story-leader-track {
    stroke: rgba(95, 164, 255, 0.52);
    stroke-dasharray: 0.026 0.034;
    stroke-dashoffset: 0.72;
    stroke-width: 1;
    opacity: 0;
  }

  .hero-story-leader-pulse {
    stroke: rgba(162, 219, 255, 0.98);
    stroke-dasharray: 0.06 0.94;
    stroke-dashoffset: 1;
    stroke-width: 2;
    filter: drop-shadow(0 0 4px rgba(72, 167, 255, 0.9));
    opacity: 0;
  }

  .hero-story-callout.is-visible .hero-story-leader-track {
    animation: hero-story-line-reveal 620ms 260ms ease-out 1 both;
  }

  .hero-story-callout.is-visible .hero-story-leader-pulse {
    animation: hero-story-data-packet 720ms 260ms ease-out 1 both;
  }

  .hero-story-target {
    position: absolute;
    display: block;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(143, 207, 255, 0.92);
    border-radius: 50%;
    background: rgba(12, 29, 52, 0.88);
    box-shadow:
      0 0 0 4px rgba(75, 148, 247, 0.1),
      0 0 14px rgba(82, 171, 255, 0.44);
    font-style: normal;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.48);
    transition:
      opacity 220ms ease,
      transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1.4);
  }

  .hero-story-target::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #bfe7ff;
    box-shadow: 0 0 7px rgba(126, 205, 255, 0.95);
    content: "";
    transform: translate(-50%, -50%);
  }

  .hero-story-target::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 1px dashed rgba(104, 183, 255, 0.52);
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%);
  }

  .hero-story-callout.is-active .hero-story-target {
    animation: hero-story-target-pulse 1.8s 120ms ease-out 1;
  }

  .hero-story-callout.is-visible .hero-story-target {
    opacity: 0.64;
    transform: translate(-50%, -50%) scale(1);
  }

  .hero-story-callout.is-active .hero-story-target {
    opacity: 1;
  }

  .hero-story-callout.is-active .hero-story-target::after {
    animation: hero-story-reticle-spin 680ms 80ms ease-out 1;
  }

  .hero-story-callout-charts .hero-story-target {
    top: 34%;
    left: 24%;
  }

  .hero-story-callout-plan .hero-story-target {
    top: 45%;
    left: 74%;
  }

  .hero-story-callout-rules .hero-story-target {
    top: 68.6%;
    left: 88%;
  }

  .hero-story-hint {
    position: absolute;
    z-index: 6;
    bottom: 0.6%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--c-muted);
    opacity: 0;
    transform: translate(-50%, 6px);
    transition:
      opacity 320ms ease,
      transform 420ms var(--ease);
  }

  .hero-story[data-story-step="0"] .hero-story-hint {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .hero-story-hint span {
    position: relative;
    width: 17px;
    height: 25px;
    border: 1px solid rgba(151, 174, 210, 0.38);
    border-radius: 999px;
  }

  .hero-story-hint span::after {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 3px;
    height: 5px;
    border-radius: 999px;
    background: var(--c-primary-hover);
    content: "";
    transform: translateX(-50%);
    animation: hero-story-scroll-cue 1.7s ease-in-out infinite;
  }

  .hero-story-hint b {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
}

@keyframes hero-story-label-scan {
  0%,
  54% {
    left: -42%;
    opacity: 0;
  }

  62% {
    opacity: 1;
  }

  86% {
    opacity: 0.72;
  }

  100% {
    left: 118%;
    opacity: 0;
  }
}

@keyframes hero-story-line-reveal {
  from {
    stroke-dashoffset: 0.72;
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 0.76;
  }
}

@keyframes hero-story-data-packet {
  0% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  14%,
  82% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -1;
    opacity: 0;
  }
}

@keyframes hero-story-reticle-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes hero-story-target-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(75, 131, 247, 0.5),
      0 0 0 5px rgba(75, 131, 247, 0.14);
  }
  70%,
  100% {
    box-shadow:
      0 0 0 13px rgba(75, 131, 247, 0),
      0 0 0 5px rgba(75, 131, 247, 0.1);
  }
}

@keyframes hero-story-scroll-cue {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

.hero-laptop-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 44 / 27;
  object-fit: contain;
  filter: drop-shadow(0 40px 58px rgba(0, 0, 0, 0.36));
}

.hero-screen-demo {
  position: absolute;
  z-index: 2;
  top: 7.04%;
  left: 9.93%;
  width: 80.14%;
  overflow: hidden;
  border-radius: 0.35%;
  aspect-ratio: 3454 / 2156;
  background: #0a0f18;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  isolation: isolate;
}

.hero-demo-shot {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.hero-screen-demo > :not(.hero-demo-shot) {
  display: none;
}

.hero-demo-chart {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero-demo-chart-mask {
  fill: #0c0f16;
}

.hero-demo-chart-grid {
  fill: url("#hero-chart-grid");
}

.hero-demo-price-line {
  stroke: rgba(38, 171, 157, 0.88);
  stroke-width: 3.4;
  transition: y1 45ms linear, y2 45ms linear;
}

.hero-demo-average {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.2;
}

.hero-demo-average-progress {
  transform: scaleX(1);
  transform-box: fill-box;
  transform-origin: left center;
  will-change: transform;
}

.hero-demo-macd-replay {
  opacity: 0;
}

.hero-demo-macd-mask {
  fill: #0c0f16;
}

.hero-demo-macd-grid {
  fill: url("#hero-chart-grid");
}

.hero-demo-macd-progress {
  transform: scaleX(1);
  transform-box: fill-box;
  transform-origin: left center;
  will-change: transform;
}

.hero-demo-average-slow {
  stroke: #e82b35;
}

.hero-demo-average-fast {
  stroke: #2f6af3;
}

.hero-demo-candle-wick {
  opacity: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke-width: 3;
}

.hero-demo-candle-body {
  opacity: 1;
  transform: scaleY(1);
  transform-box: fill-box;
  transform-origin: center;
  will-change: opacity, transform;
}

.hero-demo-intro {
  position: absolute;
  z-index: 6;
  top: 12.5%;
  left: 30%;
  display: flex;
  min-width: 330px;
  align-items: center;
  flex-direction: row;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid rgba(116, 153, 218, 0.24);
  border-radius: 9px;
  background: rgba(8, 13, 23, 0.8);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  text-align: left;
}

.hero-demo-intro > span,
.hero-demo-signal-copy > span {
  color: #78a5ff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.hero-demo-intro strong {
  margin-top: 0;
  color: #eff5ff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  white-space: nowrap;
}

.hero-demo-intro small,
.hero-demo-signal-copy small {
  margin-top: 4px;
  color: #9aa7bb;
  font-size: 8px;
  line-height: 1.35;
}

.hero-demo-intro small {
  margin-top: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(136, 158, 193, 0.22);
  white-space: nowrap;
}

.hero-demo-rule-state {
  position: absolute;
  z-index: 7;
  top: 61.9%;
  right: 1.5%;
  display: grid;
  width: 8.2%;
  height: 3.2%;
  place-items: center end;
  padding-right: 0.7%;
  background: #1b202c;
  color: #f05f63;
  font-size: 7px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}

.hero-demo-rule-state span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-demo-rule-state i {
  display: inline-grid;
  width: 9px;
  height: 9px;
  place-items: center;
  border: 1px solid currentcolor;
  border-radius: 50%;
  font-size: 7px;
  font-style: normal;
  line-height: 1;
}

.hero-demo-rule-not-met {
  opacity: 0;
}

.hero-demo-rule-met {
  color: #29b59f;
  opacity: 1;
  transform: none;
}

.hero-demo-signal {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}

.hero-demo-signal-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-demo-signal-line path {
  fill: none;
  stroke: rgba(255, 99, 95, 0.9);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.hero-demo-signal-point {
  position: absolute;
  top: 65.61%;
  left: 62.88%;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #f15e5b;
  box-shadow: 0 0 0 0 rgba(241, 94, 91, 0.64);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.hero-demo-signal-copy {
  position: absolute;
  top: 30%;
  left: 42%;
  display: flex;
  min-width: 135px;
  align-items: flex-start;
  flex-direction: column;
  padding: 9px 11px 10px;
  border: 1px solid rgba(241, 94, 91, 0.34);
  border-radius: 8px;
  background: rgba(11, 16, 27, 0.88);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  backdrop-filter: blur(11px);
  text-align: left;
  transform: translate(7px, 8px);
}

.hero-demo-signal-copy > span {
  color: #ff7773;
}

.hero-demo-signal-copy strong {
  margin-top: 4px;
  color: #f7f9fd;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-laptop.is-playing .hero-demo-average-progress {
  animation: hero-demo-average-advance 6.51s 750ms steps(93, end) both;
}

.hero-laptop.is-playing .hero-demo-macd-replay {
  opacity: 1;
}

.hero-laptop.is-playing .hero-demo-macd-progress {
  animation: hero-demo-average-advance 6.51s 750ms steps(93, end) both;
}

.hero-laptop.is-playing .hero-demo-candle-wick {
  animation: hero-demo-wick-in 50ms var(--bar-delay) ease-out both;
}

.hero-laptop.is-playing .hero-demo-candle-body {
  animation: hero-demo-body-in 65ms var(--bar-delay) cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.hero-laptop.is-playing .hero-demo-signal-point {
  animation:
    hero-demo-point-in 180ms 7.45s ease-out both,
    hero-demo-signal-pulse 1.5s 7.63s ease-out infinite;
}

.hero-laptop.is-playing .hero-demo-signal-line path {
  animation: hero-demo-line-draw 520ms 7.59s var(--ease) forwards;
}

.hero-laptop.is-playing .hero-demo-signal-copy {
  animation: hero-demo-copy-in 460ms 7.89s var(--ease) forwards;
}

.hero-laptop.is-playing .hero-demo-rule-not-met {
  animation: hero-demo-state-out 250ms 7.51s ease-in both;
}

.hero-laptop.is-playing .hero-demo-rule-met {
  animation: hero-demo-state-in 320ms 7.67s var(--ease) both;
}

.hero-laptop.is-complete .hero-demo-average-progress {
  transform: scaleX(1);
}

.hero-laptop.is-complete .hero-demo-macd-replay {
  opacity: 1;
}

.hero-laptop.is-complete .hero-demo-macd-progress {
  transform: scaleX(1);
}

.hero-laptop.is-complete .hero-demo-candle-wick {
  opacity: 1;
  stroke-dashoffset: 0;
}

.hero-laptop.is-complete .hero-demo-candle-body,
.hero-laptop.is-complete .hero-demo-signal-point,
.hero-laptop.is-complete .hero-demo-signal-copy {
  opacity: 1;
}

.hero-laptop.is-complete .hero-demo-candle-body,
.hero-laptop.is-complete .hero-demo-signal-copy {
  transform: none;
}

.hero-laptop.is-complete .hero-demo-signal-point {
  transform: translate(-50%, -50%);
  animation: hero-demo-signal-pulse 1.45s ease-out infinite;
}

.hero-laptop.is-complete .hero-demo-signal-line path {
  stroke-dashoffset: 0;
}

.hero-laptop.is-complete .hero-demo-rule-not-met {
  opacity: 0;
}

.hero-laptop.is-complete .hero-demo-rule-met {
  opacity: 1;
  transform: none;
}

.hero-product figcaption {
  display: flex;
  max-width: 900px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px auto 0;
  color: var(--c-faint);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.hero-product figcaption b {
  color: var(--c-muted);
  font-weight: 500;
}

.hero-product .hero-demo-caption {
  position: relative;
  display: flex;
  width: min(760px, 78%);
  max-width: none;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  padding: 13px 18px;
  overflow: hidden;
  border: 1px solid rgba(134, 162, 210, 0.13);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(68, 119, 220, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(14, 24, 39, 0.86), rgba(8, 14, 24, 0.78));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  letter-spacing: 0;
}

.hero-demo-caption::before {
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87, 144, 255, 0.54), transparent);
  content: "";
}

.hero-demo-caption-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.hero-demo-caption-label i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(145, 185, 255, 0.72);
  border-radius: 50%;
  background: #4b83f7;
  box-shadow:
    0 0 0 4px rgba(75, 131, 247, 0.1),
    0 0 15px rgba(75, 131, 247, 0.46);
  animation: hero-caption-signal 2.2s ease-in-out infinite;
}

.hero-product .hero-demo-caption b {
  color: #8eb4ff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-demo-caption p {
  position: relative;
  padding-left: 18px;
  color: #9aa7ba;
  font-size: 12px;
  line-height: 1.65;
}

.hero-demo-caption p::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 1px;
  background: rgba(150, 174, 213, 0.15);
  content: "";
}

@keyframes hero-caption-signal {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(75, 131, 247, 0.08),
      0 0 12px rgba(75, 131, 247, 0.34);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(75, 131, 247, 0.14),
      0 0 20px rgba(75, 131, 247, 0.58);
  }
}

@keyframes hero-product-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-demo-intro-out {
  0%,
  42% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-7px);
  }
}

@keyframes hero-demo-average-advance {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-demo-wick-in {
  0% {
    opacity: 0;
    stroke-dashoffset: 1;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes hero-demo-body-in {
  0% {
    opacity: 0;
    transform: scaleY(0.08);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes hero-demo-point-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes hero-demo-signal-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 94, 91, 0.68);
  }
  72%,
  100% {
    box-shadow: 0 0 0 18px rgba(241, 94, 91, 0);
  }
}

@keyframes hero-demo-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-demo-copy-in {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes hero-demo-state-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@keyframes hero-demo-state-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Shared sections */

.section {
  position: relative;
  padding: var(--section-space) 0;
  border-top: 1px solid var(--c-line-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-heading-split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.65fr);
  align-items: end;
  gap: 96px;
}

.section-heading h2 {
  max-width: 780px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-wrap: balance;
}

.section-heading > p:last-child,
.section-heading-split > p {
  max-width: 620px;
  margin-top: 20px;
  color: var(--c-body);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

html[lang="zh-CN"] .mode-intro {
  max-width: none;
  white-space: nowrap;
}

.section-heading-split > p {
  margin-top: 0;
}

.panel-index,
.support-index {
  color: var(--c-primary-hover);
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* System loop */

.system-loop {
  background: var(--c-canvas);
}

.loop-steps {
  position: relative;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.loop-steps::before {
  position: absolute;
  top: 45px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(75, 131, 247, 0.28) 12%,
    rgba(50, 190, 208, 0.28) 88%,
    transparent
  );
  content: "";
}

.loop-steps li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 208px;
  align-content: space-between;
  gap: 30px;
  padding: 22px 22px 25px;
  overflow: hidden;
  border: 1px solid rgba(157, 182, 224, 0.14);
  border-radius: 17px;
  background:
    radial-gradient(circle at 18% -10%, rgba(75, 131, 247, 0.16), transparent 44%),
    linear-gradient(145deg, rgba(17, 28, 44, 0.92), rgba(9, 15, 25, 0.94));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition:
    border-color 260ms var(--ease),
    box-shadow 260ms var(--ease),
    transform 260ms var(--ease);
}

.loop-steps li::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 158, 255, 0.72), transparent);
  content: "";
  opacity: 0.5;
  transform: scaleX(0.35);
  transition:
    opacity 260ms ease,
    transform 360ms var(--ease);
}

.loop-steps li::after {
  position: absolute;
  right: 14px;
  bottom: -8px;
  background: linear-gradient(
    180deg,
    rgba(209, 224, 250, 0.1),
    rgba(142, 168, 211, 0.025)
  );
  background-clip: text;
  color: transparent;
  content: attr(data-step);
  font-family: var(--font-number);
  font-size: clamp(76px, 6vw, 92px);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.82;
  opacity: 0.62;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 300ms ease,
    transform 360ms var(--ease);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loop-steps li:hover {
  border-color: rgba(112, 158, 239, 0.32);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.22),
    0 0 34px rgba(55, 105, 198, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
}

.loop-steps li:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.loop-steps li:hover::after {
  opacity: 0.92;
  transform: translateY(0);
}

.loop-step-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.loop-step-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(114, 158, 234, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(70, 124, 222, 0.19), rgba(34, 71, 135, 0.07)),
    rgba(11, 20, 33, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.18);
  color: #7ca9ff;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    transform 260ms var(--ease);
}

.loop-step-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.loop-steps li:hover .loop-step-icon {
  border-color: rgba(126, 174, 255, 0.42);
  color: #a7c7ff;
  transform: translateY(-2px);
}

.loop-step-copy {
  position: relative;
  z-index: 1;
}

.loop-steps h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.loop-steps p {
  max-width: 220px;
  margin-top: 11px;
  color: #8491a5;
  font-size: 13px;
  line-height: 1.7;
}

/* Three modes */

.modes {
  background: var(--c-canvas-soft);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--c-line-strong);
  border-bottom: 1px solid var(--c-line-strong);
}

.mode-tabs button {
  position: relative;
  display: grid;
  min-height: 90px;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 4px 16px;
  padding: 19px 24px;
  border: 0;
  border-right: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  text-align: left;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.mode-tabs button:last-child {
  border-right: 0;
}

.mode-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--c-primary);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.mode-tabs button.is-active {
  background: var(--c-primary-soft);
  color: var(--c-body);
}

.mode-tabs button.is-active::after {
  animation: tab-progress 7s linear both;
}

.mode-tabs button span {
  grid-row: 1 / span 2;
  color: var(--c-primary-hover);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.mode-tabs button b {
  color: var(--c-ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.mode-tabs button small {
  font-size: 12px;
  line-height: 1.4;
}

.mode-tabs button.is-active b {
  color: var(--c-ink);
}

@keyframes tab-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.mode-stage {
  margin-top: 32px;
}

.mode-panel {
  display: grid;
  min-height: 540px;
  grid-template-columns: minmax(330px, 0.7fr) minmax(0, 1.45fr);
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-media);
  background: var(--c-surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28);
}

.mode-panel[hidden] {
  display: none;
}

.mode-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 42px;
  border-right: 1px solid var(--c-line);
}

.mode-copy h3,
.capability-copy h3 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(27px, 2.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-wrap: balance;
}

.mode-copy > p:not(.panel-index) {
  margin-top: 20px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.mode-copy ul,
.capability-copy ul,
.commerce-card ul {
  display: grid;
  gap: 11px;
  margin-top: 26px;
  list-style: none;
}

.mode-copy ul {
  padding-top: 22px;
  border-top: 1px solid var(--c-line-soft);
}

.mode-copy li,
.capability-copy li,
.commerce-card li {
  position: relative;
  padding-left: 18px;
  color: var(--c-ink-soft);
  font-size: 13px;
  line-height: 1.62;
}

.mode-copy li {
  color: var(--c-ink-soft);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.5;
}

.mode-copy li::before,
.capability-copy li::before,
.commerce-card li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-cyan);
  content: "";
}

.mode-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #101622;
}

.mode-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

#mode-panel-check,
#mode-panel-signal,
#mode-panel-backtest {
  min-height: 0;
  grid-template-columns: minmax(310px, 0.58fr) minmax(0, 1.72fr);
  align-items: center;
  column-gap: 24px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#mode-panel-check > .mode-copy,
#mode-panel-signal > .mode-copy,
#mode-panel-backtest > .mode-copy {
  align-self: stretch;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-media);
  background:
    linear-gradient(145deg, rgba(15, 25, 39, 0.98), rgba(8, 14, 23, 0.98));
  box-shadow:
    0 30px 78px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.mode-simulator-legacy {
  display: none !important;
}

.mode-video-demo {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1858 / 1080;
  align-self: center;
  isolation: isolate;
  background: #080d15;
}

.mode-video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(178, 196, 227, 0.12);
  border-radius: 10px;
  background: #080d15;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.3);
}

.mode-video-shell::after {
  display: none;
}

.mode-video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080d15;
}

.mode-video-shell video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.mode-video-annotation {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.mode-video-signal {
  position: absolute;
  top: var(--signal-y, 68%);
  left: var(--signal-x, 62%);
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: #ff5e5b;
  box-shadow:
    0 0 0 7px rgba(255, 94, 91, 0.15),
    0 0 26px rgba(255, 94, 91, 0.76);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55);
}

.mode-video-signal::before,
.mode-video-signal::after {
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(255, 105, 101, 0.8);
  border-radius: inherit;
  content: "";
  opacity: 0;
}

.mode-video-signal::after {
  inset: -17px;
  border-color: rgba(255, 105, 101, 0.46);
}

.mode-video-source-box {
  position: absolute;
  top: 52.4%;
  right: 0.8%;
  width: 18.2%;
  height: 17.8%;
  border: 1.5px dashed rgba(255, 111, 106, 0.92);
  border-radius: 6px;
  background: rgba(255, 89, 85, 0.025);
  box-shadow:
    0 0 0 1px rgba(255, 105, 100, 0.08),
    0 0 24px rgba(255, 74, 70, 0.12);
  opacity: 0;
}

.mode-video-callout {
  position: absolute;
  top: 77.2%;
  left: 39%;
  width: 34%;
  padding: 9px 12px 10px;
  border: 1px solid rgba(255, 111, 106, 0.44);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(24, 31, 44, 0.97), rgba(11, 16, 25, 0.97));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(255, 77, 72, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(8px);
}

.mode-video-callout span {
  display: block;
  margin-bottom: 5px;
  color: #ff7773;
  font-family: var(--font-number);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.mode-video-callout strong {
  display: block;
  color: #f2f5fa;
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.55;
}

.mode-video-leader {
  position: absolute;
  top: 70.1%;
  left: 72.8%;
  width: 8.2%;
  height: 7.8%;
  border-top: 1.5px dashed rgba(255, 124, 118, 0.88);
  border-left: 1.5px dashed rgba(255, 124, 118, 0.88);
  border-radius: 7px 0 0;
  filter: drop-shadow(0 0 7px rgba(255, 84, 79, 0.28));
  opacity: 0;
  transform: scaleY(0.55) scaleX(0.75);
  transform-origin: right top;
}

.mode-video-demo.is-annotated .mode-video-signal {
  animation: checklist-signal-in 260ms ease-out both, checklist-signal-pulse 1.05s 260ms ease-out infinite;
}

.mode-video-demo.is-annotated .mode-video-signal::before {
  animation: checklist-signal-ring 1.05s 160ms ease-out infinite;
}

.mode-video-demo.is-annotated .mode-video-signal::after {
  animation: checklist-signal-ring 1.05s 430ms ease-out infinite;
}

.mode-video-demo.is-annotated .mode-video-source-box {
  animation: checklist-source-in 340ms 100ms ease-out both;
}

.mode-video-demo.is-annotated .mode-video-callout {
  animation: checklist-callout-in 420ms 220ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.mode-video-demo.is-annotated .mode-video-leader {
  animation: checklist-leader-in 360ms 470ms ease-out both;
}

.mode-video-backtest .mode-video-callout {
  top: 68.1%;
  left: 58.5%;
  width: 19%;
  padding: 10px 12px 11px;
}

.mode-video-backtest .mode-video-source-box {
  top: 51.7%;
  right: 0.8%;
  width: 18.2%;
  height: 29%;
}

.mode-video-backtest .mode-video-leader {
  top: 64.2%;
  left: 77.4%;
  width: 3.8%;
  height: 3.9%;
  border: 0;
  border-right: 1.5px dashed rgba(255, 124, 118, 0.88);
  border-bottom: 1.5px dashed rgba(255, 124, 118, 0.88);
  border-radius: 0 0 7px;
  transform-origin: right top;
}


@keyframes checklist-signal-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes checklist-signal-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 7px rgba(255, 94, 91, 0.13),
      0 0 18px rgba(255, 94, 91, 0.48);
  }
  50% {
    box-shadow:
      0 0 0 11px rgba(255, 94, 91, 0.2),
      0 0 32px rgba(255, 94, 91, 0.9);
  }
}

@keyframes checklist-signal-ring {
  0% {
    opacity: 0.75;
    transform: scale(0.48);
  }
  78%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes checklist-source-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes checklist-callout-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes checklist-leader-in {
  from {
    opacity: 0;
    transform: scaleY(0.55);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mode-workspace {
  isolation: isolate;
  background: #0b1018;
}

.mode-workspace::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  border: 1px solid rgba(165, 184, 218, 0.08);
  content: "";
  pointer-events: none;
}

.mode-workspace .mode-workspace-base {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  filter: brightness(0.7) saturate(0.78) contrast(1.04);
  transform: scale(1.015);
  transform-origin: left center;
}

.mode-workspace-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 19, 0.03) 0%, rgba(7, 12, 19, 0.04) 54%, rgba(7, 12, 19, 0.64) 70%, rgba(7, 12, 19, 0.96) 100%),
    linear-gradient(180deg, rgba(5, 10, 17, 0.06), rgba(5, 10, 17, 0.18));
  pointer-events: none;
}

.mode-chart-overlay {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 30%;
  bottom: 0;
  left: 0;
  width: 70%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.mode-chart-focus {
  fill: rgba(64, 119, 219, 0.035);
  stroke: rgba(104, 153, 242, 0.34);
  stroke-dasharray: 7 8;
  stroke-width: 1.4;
}

.mode-chart-guide {
  fill: none;
  stroke: rgba(109, 148, 218, 0.26);
  stroke-dasharray: 5 8;
  stroke-width: 1.2;
}

.mode-chart-node {
  fill: #4b83f7;
  stroke: rgba(197, 216, 255, 0.9);
  stroke-width: 2;
}

.mode-chart-status {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(119, 157, 225, 0.22);
  border-radius: 10px;
  background: rgba(9, 16, 27, 0.82);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}

.mode-status-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(75, 131, 247, 0.15);
  color: #79a5ff;
}

.mode-status-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.mode-chart-status > span:last-child {
  display: grid;
  gap: 3px;
}

.mode-chart-status b,
.mode-chart-status small {
  line-height: 1;
}

.mode-chart-status b {
  color: #9dbdff;
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mode-chart-status small {
  color: #8996aa;
  font-size: 8px;
}

.mode-sidecar {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 34%;
  min-width: 212px;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(174, 195, 232, 0.13);
  background:
    radial-gradient(circle at 84% 4%, rgba(75, 131, 247, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(27, 34, 47, 0.985), rgba(20, 26, 37, 0.99));
  box-shadow: -20px 0 54px rgba(0, 0, 0, 0.24);
}

.mode-sidecar-head {
  display: flex;
  min-height: 73px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 13px;
  border-bottom: 1px solid rgba(164, 182, 214, 0.12);
}

.mode-sidecar-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.mode-sidecar-symbol {
  color: #4d83f3;
  font-size: 19px;
  line-height: 1;
}

.mode-sidecar-title > span:last-child,
.mode-sidecar-summary > span:last-child,
.mode-signal-state > span:last-child,
.mode-rule > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.mode-sidecar-title b,
.mode-sidecar-summary b,
.mode-signal-state b,
.mode-rule b,
.mode-sidecar-title small,
.mode-sidecar-summary small,
.mode-signal-state small,
.mode-rule small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-sidecar-title b {
  color: #e6ebf4;
  font-size: 10px;
  font-weight: 600;
}

.mode-sidecar-title small {
  color: #818ca0;
  font-size: 8px;
}

.mode-sidecar-head > em {
  flex: 0 0 auto;
  padding: 6px 7px;
  border: 1px solid rgba(151, 171, 205, 0.12);
  border-radius: 7px;
  background: rgba(115, 131, 160, 0.14);
  color: #a7b0c0;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}

.mode-sidecar-summary,
.mode-signal-state {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(164, 182, 214, 0.1);
}

.mode-summary-icon,
.mode-signal-state-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 7px;
  background: rgba(75, 131, 247, 0.14);
  color: #6f9dfb;
  font-family: var(--font-number);
  font-size: 10px;
}

.mode-sidecar-summary b,
.mode-signal-state b {
  color: #dfe6f1;
  font-size: 9px;
  font-weight: 600;
}

.mode-sidecar-summary small,
.mode-signal-state small {
  color: #7f8b9f;
  font-size: 7px;
}

.mode-rule {
  display: grid;
  min-height: 70px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(164, 182, 214, 0.09);
}

.mode-rule-number {
  color: #6e7c92;
  font-family: var(--font-number);
  font-size: 8px;
}

.mode-rule b {
  color: #d7deea;
  font-size: 8px;
  font-weight: 500;
}

.mode-rule small {
  color: #778398;
  font-size: 7px;
}

.mode-rule > em {
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}

.mode-rule.is-met > em {
  background: rgba(45, 184, 145, 0.11);
  color: #4fd1aa;
}

.mode-rule.is-waiting > em {
  border: 1px solid rgba(98, 146, 235, 0.28);
  background: rgba(75, 131, 247, 0.12);
  color: #8db2ff;
}

.mode-sidecar-foot {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(164, 182, 214, 0.11);
  color: #7d899d;
  font-size: 7px;
}

.mode-sidecar-foot b {
  color: #9ca8ba;
  font-weight: 500;
  text-align: right;
}

.mode-scan-band,
.mode-scan-line {
  transform-box: fill-box;
  transform-origin: center;
}

.mode-scan-line {
  stroke: rgba(84, 149, 255, 0.76);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(74, 134, 247, 0.74));
}

.mode-signal-leader {
  fill: none;
  stroke: rgba(255, 105, 98, 0.92);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mode-signal-halo {
  fill: rgba(241, 100, 94, 0.12);
  stroke: rgba(241, 100, 94, 0.32);
  stroke-width: 2;
}

.mode-signal-core {
  fill: #f16461;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3;
}

.mode-signal-badge {
  position: absolute;
  z-index: 4;
  top: 27%;
  left: 37%;
  display: grid;
  min-width: 134px;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(241, 100, 94, 0.32);
  border-radius: 9px;
  background: rgba(11, 17, 27, 0.9);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.mode-signal-badge span {
  color: #ff7c78;
  font-family: var(--font-number);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.mode-signal-badge b {
  color: #eef3fb;
  font-size: 10px;
  font-weight: 600;
}

.mode-signal-badge small {
  color: #8793a6;
  font-size: 7px;
}

.mode-signal-state {
  background: linear-gradient(90deg, rgba(35, 78, 171, 0.7), rgba(31, 66, 145, 0.5));
}

.mode-signal-state-icon {
  background: rgba(86, 139, 255, 0.18);
  color: #a9c2ff;
}

.mode-backtest-path {
  fill: none;
  stroke: rgba(73, 197, 164, 0.82);
  stroke-dasharray: 9 8;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(53, 196, 154, 0.28));
}

.mode-trade-mark circle {
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 2;
}

.mode-trade-mark text {
  fill: #fff;
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
}

.mode-trade-buy circle {
  fill: #168566;
}

.mode-trade-sell circle {
  fill: #ba3438;
}

.mode-backtest-meter {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: 18px;
  display: grid;
  width: min(300px, 48%);
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 11px 13px;
  border: 1px solid rgba(67, 191, 156, 0.24);
  border-radius: 10px;
  background: rgba(8, 17, 24, 0.86);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.mode-backtest-meter > span {
  display: grid;
  gap: 3px;
}

.mode-backtest-meter b {
  color: #66d4b2;
  font-family: var(--font-number);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.mode-backtest-meter small {
  color: #7f8d9e;
  font-size: 7px;
}

.mode-backtest-meter em {
  align-self: center;
  color: #a8b7c8;
  font-family: var(--font-number);
  font-size: 10px;
  font-style: normal;
}

.mode-backtest-meter > i {
  position: relative;
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(121, 145, 174, 0.16);
}

.mode-backtest-meter > i > u {
  position: absolute;
  inset: 0;
  width: 84%;
  border-radius: inherit;
  background: linear-gradient(90deg, #318e78, #57d0ae);
  box-shadow: 0 0 12px rgba(68, 202, 164, 0.34);
  text-decoration: none;
  transform-origin: left;
}

.mode-backtest-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 13px 11px;
  border-bottom: 1px solid rgba(164, 182, 214, 0.1);
}

.mode-backtest-stats > span {
  display: grid;
  gap: 5px;
  padding: 0 6px;
  border-right: 1px solid rgba(164, 182, 214, 0.09);
}

.mode-backtest-stats > span:last-child {
  border-right: 0;
}

.mode-backtest-stats small {
  color: #738096;
  font-family: var(--font-number);
  font-size: 6px;
}

.mode-backtest-stats b {
  color: #dfe6f0;
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 500;
}

.mode-backtest-stats b.is-positive {
  color: #4fc7a2;
}

.mode-backtest-rules {
  display: grid;
  padding: 8px 14px;
}

.mode-backtest-rules > span {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(164, 182, 214, 0.08);
}

.mode-backtest-rules > span:last-child {
  border-bottom: 0;
}

.mode-backtest-rules small {
  color: #7c889a;
  font-size: 7px;
}

.mode-backtest-rules b {
  color: #cfd7e4;
  font-size: 7px;
  font-weight: 500;
}

.mode-panel.is-active .mode-chart-focus {
  animation: mode-focus-pulse 2.4s ease-in-out infinite;
}

.mode-panel.is-active .mode-chart-node {
  animation: mode-node-arrive 560ms var(--ease) both;
}

.mode-panel.is-active .mode-chart-node-two {
  animation-delay: 160ms;
}

.mode-panel.is-active .mode-chart-node-three {
  animation-delay: 320ms;
}

.mode-panel.is-active .mode-scan-band,
.mode-panel.is-active .mode-scan-line {
  animation: mode-scan-chart 3.2s 250ms var(--ease) both;
}

.mode-signal-leader,
.mode-signal-halo,
.mode-signal-core,
.mode-signal-badge {
  opacity: 0;
}

.mode-panel.is-active .mode-signal-leader,
.mode-panel.is-active .mode-signal-halo,
.mode-panel.is-active .mode-signal-core,
.mode-panel.is-active .mode-signal-badge {
  animation: mode-signal-appear 460ms 2.9s var(--ease) both;
}

.mode-panel.is-active .mode-signal-core {
  animation:
    mode-signal-appear 460ms 2.9s var(--ease) both,
    mode-signal-pulse 1.5s 3.35s ease-out infinite;
}

.mode-backtest-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.mode-panel.is-active .mode-backtest-path {
  animation: mode-backtest-draw 3.6s 300ms linear both;
}

.mode-trade-mark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.mode-panel.is-active .mode-trade-mark {
  animation: mode-trade-pop 420ms var(--ease) both;
}

.mode-panel.is-active .mode-trade-mark:nth-of-type(2) {
  animation-delay: 900ms;
}

.mode-panel.is-active .mode-trade-mark:nth-of-type(3) {
  animation-delay: 1.45s;
}

.mode-panel.is-active .mode-trade-mark:nth-of-type(4) {
  animation-delay: 2s;
}

.mode-panel.is-active .mode-trade-mark:nth-of-type(5) {
  animation-delay: 2.55s;
}

.mode-panel.is-active .mode-trade-mark:nth-of-type(6) {
  animation-delay: 3.1s;
}

.mode-panel.is-active .mode-backtest-meter > i > u {
  animation: mode-meter-fill 3.6s 350ms var(--ease) both;
}

@keyframes mode-focus-pulse {
  0%,
  100% {
    fill: rgba(64, 119, 219, 0.025);
    stroke: rgba(104, 153, 242, 0.26);
  }
  50% {
    fill: rgba(64, 119, 219, 0.065);
    stroke: rgba(104, 153, 242, 0.48);
  }
}

@keyframes mode-node-arrive {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mode-scan-chart {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(430px);
  }
}

@keyframes mode-signal-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mode-signal-pulse {
  from {
    filter: drop-shadow(0 0 0 rgba(241, 100, 94, 0));
  }
  to {
    filter: drop-shadow(0 0 15px rgba(241, 100, 94, 0.72));
  }
}

@keyframes mode-backtest-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes mode-trade-pop {
  from {
    opacity: 0;
    transform: scale(0.45);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mode-meter-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* High-fidelity replay mode simulators */

.mode-simulator {
  display: grid;
  min-height: 540px;
  grid-template-columns: minmax(0, 1fr) minmax(238px, 38%);
  isolation: isolate;
  background: #0a0f17;
}

.mode-simulator::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  border: 1px solid rgba(164, 184, 219, 0.08);
  content: "";
  pointer-events: none;
}

.mode-simulator-check {
  min-height: 620px;
  grid-template-columns: minmax(0, 1fr) minmax(244px, 37%);
}

.mode-simulator-check .mode-kline {
  min-height: 620px;
}

.mode-chart-app {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 15%, rgba(41, 91, 179, 0.08), transparent 40%),
    #0b111a;
}

.mode-kline {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
}

.mode-toolbar text,
.mode-price-axis text,
.mode-ohlc,
.mode-indicator-label,
.mode-signal-callout text,
.mode-order-marker text {
  font-family: var(--font-number);
}

.mode-toolbar text {
  fill: #c8d0dc;
  font-size: 10px;
  font-weight: 600;
}

.mode-toolbar text.is-dim {
  fill: #7e899a;
  font-size: 8px;
  font-weight: 500;
}

.mode-ohlc {
  fill: #36b4aa;
  font-size: 8px;
  letter-spacing: 0.015em;
}

.mode-price-axis text {
  fill: #7f8a9a;
  font-size: 8px;
}

.mode-indicator-label {
  fill: #a4afbe;
  font-size: 8px;
  font-weight: 600;
}

.mode-chart-watermark {
  fill: rgba(132, 145, 165, 0.1);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mode-time-axis text {
  fill: #727d8e;
  font-family: var(--font-number);
  font-size: 8px;
}

.mode-tool-rail {
  opacity: 0.86;
}

.mode-indicator-label::first-letter {
  fill: #4b83f7;
}

.mode-macd-hist {
  fill: none;
  stroke: #747e8c;
  stroke-width: 6px;
  stroke-dasharray: 3 4;
  opacity: 0.72;
}

.mode-macd-line {
  fill: none;
  stroke-width: 1.8;
}

.mode-macd-line.is-blue {
  stroke: #3982ff;
}

.mode-macd-line.is-orange {
  stroke: #f47b20;
}

.mode-kline-candle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.mode-kline-candle-wick {
  stroke-width: 1.35;
}

.mode-ma {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mode-ma-fast {
  stroke: #367df0;
}

.mode-ma-slow {
  stroke: #ef464a;
}

.mode-ma-reveal {
  transform-box: fill-box;
  transform-origin: left center;
}

.mode-live-price {
  stroke: #36aa9e;
  stroke-width: 1;
}

.mode-playhead {
  opacity: 0;
  stroke: rgba(116, 166, 255, 0.62);
  stroke-dasharray: 4 5;
  stroke-width: 1;
}

.mode-control-panel {
  position: relative;
  z-index: 5;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid #353e50;
  background:
    radial-gradient(circle at 100% 0, rgba(63, 99, 174, 0.08), transparent 38%),
    #202532;
  box-shadow: -18px 0 52px rgba(0, 0, 0, 0.22);
  color: #dce1e9;
}

.mode-order-summary {
  min-height: 88px;
  border-bottom: 1px solid #353d4a;
  background: #202532;
}

.mode-order-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding: 12px 13px 9px;
}

.mode-order-summary > div b {
  color: #e5e9f0;
  font-size: 12px;
  font-weight: 600;
}

.mode-order-summary > div em {
  color: #58c8a5;
  font-family: var(--font-number);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.mode-order-summary > div small {
  color: #8d96a5;
  font-size: 7px;
}

.mode-order-summary > div small:last-child {
  text-align: right;
}

.mode-order-summary dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 7px 13px 10px;
  border-top: 1px solid rgba(115, 129, 154, 0.1);
}

.mode-order-summary dl > div {
  display: grid;
  gap: 3px;
}

.mode-order-summary dt,
.mode-order-summary dd {
  margin: 0;
  font-family: var(--font-number);
}

.mode-order-summary dt {
  color: #858f9f;
  font-size: 6px;
}

.mode-order-summary dd {
  color: #e1e5ec;
  font-size: 8px;
}

.mode-order-summary dl > div:last-child dd {
  color: #36c69b;
}

.mode-ticket {
  display: grid;
  gap: 7px;
  padding: 10px 12px 11px;
  border-bottom: 1px solid #353d4a;
  background: #202532;
}

.mode-ticket-field {
  display: grid;
  min-height: 25px;
  grid-template-columns: 1fr 70px;
  align-items: center;
}

.mode-ticket-field span {
  color: #8f98a7;
  font-size: 7px;
}

.mode-ticket-field b {
  padding: 6px 9px;
  border-radius: 4px;
  background: #2a303d;
  color: #dce1e9;
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 500;
  text-align: right;
}

.mode-ticket-field:nth-child(2) b,
.mode-ticket-field:nth-child(3) b {
  color: #676f7c;
}

.mode-ticket-system {
  display: grid;
  min-height: 31px;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #2a303d;
}

.mode-ticket-system span {
  display: grid;
  height: 100%;
  place-items: center;
  background: #363e4d;
  color: #6597ff;
  font-size: 11px;
}

.mode-ticket-system b {
  padding-left: 9px;
  color: #dce1e9;
  font-size: 8px;
  font-weight: 500;
}

.mode-ticket-system em {
  padding-right: 9px;
  color: #929baa;
  font-size: 8px;
  font-style: normal;
}

.mode-ticket-actions {
  display: grid;
  grid-template-columns: 1fr 0.86fr 1fr;
  gap: 6px;
}

.mode-ticket-actions button,
.mode-ticket-actions span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 600;
}

.mode-ticket-actions button:first-child {
  background: #ae2024;
}

.mode-ticket-actions button:last-child {
  background: #087354;
}

.mode-ticket-actions span {
  background: #2a303d;
  color: #d9dee6;
  font-weight: 500;
}

.mode-close-all {
  display: flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #252b37;
  color: #616a78;
  font-size: 7px;
}

.mode-close-all span {
  margin-left: auto;
  padding: 0 9px;
  color: #8e97a5;
}

.mode-control-head {
  display: grid;
  min-height: 68px;
  grid-template-columns: 24px 1px minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-bottom: 1px solid #353e4b;
  background: #151a25;
}

.mode-swap-icon,
.mode-list-icon,
.mode-flask-icon {
  color: #377bff;
  font-family: var(--font-number);
  font-size: 19px;
  line-height: 1;
}

.mode-control-head > i {
  width: 1px;
  height: 25px;
  background: #3b4352;
}

.mode-control-head > b,
.mode-control-section b,
.mode-auto-status b {
  overflow: hidden;
  color: #e7ebf2;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-control-head > small {
  overflow: hidden;
  color: #9ca4b2;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-chip {
  padding: 8px 9px;
  border: 1px solid rgba(82, 135, 255, 0.62);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(78, 131, 255, 0.28), rgba(50, 89, 181, 0.19));
  box-shadow:
    0 0 0 1px rgba(68, 117, 230, 0.08),
    0 0 20px rgba(47, 103, 231, 0.16),
    inset 0 1px 0 rgba(197, 216, 255, 0.16);
  color: #b8ceff;
  font-size: 8px;
  font-style: normal;
  font-weight: 550;
  white-space: nowrap;
}

.mode-control-section {
  display: grid;
  min-height: 57px;
  grid-template-columns: 16px 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid #343b49;
}

.mode-control-section-head > small {
  color: #929aa9;
  font-family: var(--font-number);
  font-size: 7px;
  white-space: nowrap;
}

.mode-chevron {
  color: #9ba5b4;
  font-size: 12px;
}

.mode-list-icon {
  font-size: 16px;
}

.mode-check-rule,
.mode-plan-row {
  display: grid;
  min-height: 84px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-bottom: 1px solid #343b49;
}

.mode-simulator-check .mode-control-head {
  min-height: 55px;
  padding-block: 8px;
}

.mode-simulator-check .mode-control-section {
  min-height: 45px;
  padding-block: 7px;
}

.mode-simulator-check .mode-check-rule {
  min-height: 64px;
  padding-block: 9px;
}

.mode-simulator-check .mode-plan-row {
  min-height: 65px;
  padding-block: 9px;
}

.mode-simulator-check .mode-panel-note {
  padding-block: 11px 13px;
}

.mode-check-counter,
.mode-check-evaluation,
.mode-plan-evaluation {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: end;
}

.mode-check-counter > *,
.mode-check-evaluation > *,
.mode-plan-evaluation > * {
  grid-area: 1 / 1;
}

.mode-check-counter small {
  color: #929aa9;
  font-family: var(--font-number);
  font-size: 7px;
  white-space: nowrap;
}

.mode-counter-pending,
.mode-counter-done,
.mode-eval-pending,
.mode-eval-passed,
.mode-plan-evaluation em:last-child {
  opacity: 0;
}

.mode-check-evaluation em,
.mode-plan-evaluation em {
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}

.mode-eval-base {
  color: #ff5b60;
}

.mode-eval-pending,
.mode-plan-evaluation em:first-child {
  color: #9ca5b3;
}

.mode-eval-passed,
.mode-plan-evaluation em:last-child,
.mode-counter-done {
  color: #31caa1 !important;
}

.mode-rule-index {
  color: #8c95a4;
  font-family: var(--font-number);
  font-size: 9px;
}

.mode-check-rule > span:nth-child(2),
.mode-plan-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.mode-check-rule b,
.mode-plan-row b {
  overflow: hidden;
  color: #e1e6ee;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-check-rule small,
.mode-plan-row small {
  overflow: hidden;
  color: #8e97a7;
  font-family: var(--font-number);
  font-size: 7px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.mode-state-swap,
.mode-status-swap {
  position: relative;
  display: grid;
  min-width: 53px;
  align-items: center;
  justify-items: end;
}

.mode-state-swap > em,
.mode-status-swap > em {
  grid-area: 1 / 1;
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.mode-state-before {
  color: #ff5b60;
}

.mode-state-before.is-neutral {
  color: #9ca5b3;
}

.mode-state-after {
  opacity: 0;
  color: #31caa1;
}

.mode-plan-title {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  min-height: 53px;
}

.mode-plan-title small {
  color: #a0a8b6;
  font-size: 7px;
  text-align: right;
}

.mode-shield-icon {
  color: #a5afbd;
  font-size: 17px;
}

.mode-panel-note {
  margin: 0;
  padding: 14px 12px 18px;
  color: #969eac;
  font-size: 8px;
  line-height: 1.62;
}

.mode-navigation-banner {
  display: grid;
  min-height: 64px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #3e558f;
  background: linear-gradient(90deg, rgba(35, 76, 176, 0.92), rgba(31, 67, 153, 0.88));
  color: #c9d8ff;
}

.mode-navigation-banner > b {
  font-size: 8px;
  font-weight: 500;
  line-height: 1.55;
}

.mode-navigation-banner .mode-state-before,
.mode-navigation-banner .mode-state-after {
  color: #c2d0ed;
  font-size: 7px;
}

.mode-auto-status {
  display: grid;
  min-height: 60px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #353d4c;
}

.mode-flask-icon {
  font-size: 20px;
}

.mode-auto-status .mode-state-before,
.mode-auto-status .mode-state-after {
  color: #9ca4b3;
}

.mode-auto-status .mode-state-after {
  color: #43c9a4;
}

.mode-auto-table {
  display: grid;
  margin: 0;
  padding: 5px 12px;
}

.mode-auto-table > div {
  display: grid;
  min-height: 47px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #353d4a;
}

.mode-auto-table dt,
.mode-auto-table dd {
  margin: 0;
  font-size: 8px;
  line-height: 1.35;
}

.mode-auto-table dt {
  color: #9fa7b5;
}

.mode-auto-table dd {
  color: #dce1e9;
  text-align: right;
}

.mode-signal-marker,
.mode-signal-callout,
.mode-order-marker,
.mode-order-link {
  opacity: 0;
}

.mode-signal-callout text.is-signal {
  fill: #ff7672;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mode-signal-callout text.is-title {
  fill: #f0f3f8;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}

.mode-signal-callout text.is-note {
  fill: #8e99aa;
  font-size: 8px;
}

.mode-order-marker {
  transform-box: fill-box;
  transform-origin: center;
}

.mode-order-marker circle {
  stroke: #f2f6fb;
  stroke-width: 1.6;
}

.mode-order-marker path {
  fill: #fff;
}

.mode-order-marker text {
  fill: #dce4ef;
  font-size: 7px;
  font-weight: 700;
  text-anchor: middle;
}

.mode-order-buy circle {
  fill: #0a8d68;
}

.mode-order-sell circle {
  fill: #c53b41;
}

.mode-order-link {
  fill: none;
  stroke: rgba(117, 156, 224, 0.7);
  stroke-dasharray: 4 4;
  stroke-width: 1.2;
}

.mode-panel.is-active .mode-kline-candle {
  animation: mode-candle-in 170ms var(--mode-bar-delay) cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.mode-panel.is-active .mode-kline-candle.is-history {
  opacity: 1;
  animation: none;
  transform: none;
}

.mode-panel.is-active .mode-ma-reveal {
  animation: mode-ma-progress 3.35s 250ms steps(40, end) both;
}

.mode-panel.is-active .mode-simulator-check .mode-ma-reveal {
  animation: mode-check-ma-progress 5s 300ms steps(42, end) both;
}

.mode-panel.is-active .mode-live-price {
  animation: mode-price-track 3.35s 250ms steps(13, end) both;
}

.mode-panel.is-active .mode-simulator-check .mode-live-price {
  animation: none;
}

.mode-panel.is-active .mode-playhead {
  animation: mode-playhead-track 3.35s 250ms steps(40, end) both;
}

.mode-panel.is-active .mode-simulator-check .mode-playhead {
  animation: mode-check-playhead 5s 300ms steps(42, end) both;
}

.mode-panel.is-active .mode-simulator-check .mode-counter-pending,
.mode-panel.is-active .mode-simulator-check .mode-eval-pending {
  animation: mode-check-awaiting 720ms 620ms steps(1, end) 6;
}

.mode-panel.is-active .mode-simulator-check .mode-counter-base,
.mode-panel.is-active .mode-simulator-check .mode-eval-base {
  animation: mode-check-base-pulse 720ms 620ms steps(1, end) 6 both;
}

.mode-panel.is-active .mode-simulator-check .mode-counter-base,
.mode-panel.is-active .mode-simulator-check .mode-eval-base {
  animation:
    mode-check-base-pulse 720ms 620ms steps(1, end) 6,
    mode-state-hide 220ms 5.08s ease both;
}

.mode-panel.is-active .mode-simulator-check .mode-counter-done,
.mode-panel.is-active .mode-simulator-check .mode-eval-passed {
  animation: mode-state-show 260ms 5.08s ease both;
}

.mode-panel.is-active .mode-simulator-check .mode-plan-evaluation em:first-child {
  animation: mode-state-hide 220ms 5.42s ease both;
}

.mode-panel.is-active .mode-simulator-check .mode-plan-evaluation em:last-child {
  animation: mode-state-show 260ms 5.42s ease both;
}

.mode-panel.is-active .mode-simulator-check .mode-check-rule {
  animation: mode-row-pass 500ms 5.08s ease both;
}

.mode-panel.is-active .mode-simulator-check .mode-plan-row {
  animation: mode-row-pass 500ms 5.42s ease both;
}

.mode-panel.is-active .mode-state-swap .mode-state-before {
  animation: mode-state-hide 220ms var(--state-delay) ease both;
}

.mode-panel.is-active .mode-state-swap .mode-state-after {
  animation: mode-state-show 260ms var(--state-delay) ease both;
}

.mode-panel.is-active .mode-control-check > .mode-check-rule:nth-child(3),
.mode-panel.is-active .mode-control-check > .mode-check-rule:nth-child(4),
.mode-panel.is-active .mode-control-check .mode-plan-row {
  animation: mode-row-pass 460ms var(--state-delay, 1400ms) ease both;
}

.mode-panel.is-active .mode-control-check > .mode-check-rule:nth-child(3) {
  --state-delay: 1350ms;
}

.mode-panel.is-active .mode-control-check > .mode-check-rule:nth-child(4) {
  --state-delay: 2450ms;
}

.mode-panel.is-active .mode-control-check .mode-plan-row {
  --state-delay: 3200ms;
}

.mode-panel.is-active .mode-navigation-banner .mode-state-before,
.mode-panel.is-active .mode-auto-status .mode-state-before {
  animation: mode-state-hide 220ms 3.1s ease both;
}

.mode-panel.is-active .mode-navigation-banner .mode-state-after,
.mode-panel.is-active .mode-auto-status .mode-state-after {
  animation: mode-state-show 260ms 3.1s ease both;
}

.mode-panel.is-active .mode-signal-marker,
.mode-panel.is-active .mode-signal-callout {
  animation: mode-signal-pop 430ms 3.08s cubic-bezier(0.18, 0.8, 0.25, 1.15) both;
}

.mode-panel.is-active .mode-signal-marker circle:last-child {
  animation: mode-signal-ring 1.35s 3.5s ease-out infinite;
}

.mode-panel.is-active .mode-order-one {
  animation: mode-order-pop 300ms 1.2s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.mode-panel.is-active .mode-order-two,
.mode-panel.is-active .mode-order-link-one {
  animation: mode-order-pop 300ms 1.85s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.mode-panel.is-active .mode-order-three {
  animation: mode-order-pop 300ms 2.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.mode-panel.is-active .mode-order-four,
.mode-panel.is-active .mode-order-link-two {
  animation: mode-order-pop 300ms 3.15s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

@keyframes mode-candle-in {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes mode-ma-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes mode-check-ma-progress {
  from {
    transform: scaleX(0.797);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes mode-check-playhead {
  from {
    opacity: 0.7;
    transform: translateX(493px);
  }
  96% {
    opacity: 0.7;
  }
  to {
    opacity: 0;
    transform: translateX(614px);
  }
}

@keyframes mode-check-awaiting {
  0%,
  28% {
    opacity: 1;
  }
  29%,
  100% {
    opacity: 0;
  }
}

@keyframes mode-check-base-pulse {
  0%,
  28% {
    opacity: 0;
  }
  29%,
  100% {
    opacity: 1;
  }
}

@keyframes mode-price-track {
  0% { transform: translateY(0); }
  8% { transform: translateY(-32px); }
  16% { transform: translateY(-62px); }
  24% { transform: translateY(-107px); }
  32% { transform: translateY(-54px); }
  40% { transform: translateY(-100px); }
  48% { transform: translateY(-125px); }
  56% { transform: translateY(-116px); }
  64% { transform: translateY(-156px); }
  72% { transform: translateY(-178px); }
  80% { transform: translateY(-196px); }
  88% { transform: translateY(-218px); }
  96% { transform: translateY(-240px); }
  100% { transform: translateY(-262px); }
}

@keyframes mode-playhead-track {
  from {
    opacity: 0.8;
    transform: translateX(0);
  }
  96% {
    opacity: 0.8;
  }
  to {
    opacity: 0;
    transform: translateX(614px);
  }
}

@keyframes mode-state-hide {
  to {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@keyframes mode-state-show {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mode-row-pass {
  0% {
    background: transparent;
  }
  45% {
    background: rgba(47, 202, 161, 0.08);
  }
  100% {
    background: rgba(47, 202, 161, 0.025);
  }
}

@keyframes mode-signal-pop {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mode-signal-ring {
  0% {
    filter: drop-shadow(0 0 0 rgba(255, 98, 94, 0));
  }
  60% {
    filter: drop-shadow(0 0 12px rgba(255, 98, 94, 0.9));
  }
  100% {
    filter: drop-shadow(0 0 1px rgba(255, 98, 94, 0.2));
  }
}

@keyframes mode-order-pop {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Six capabilities */

.capabilities {
  background: var(--c-canvas);
}

.capability-layout {
  background: transparent;
}

.capability-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--c-line-strong);
}

.capability-tabs button {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  text-align: left;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.capability-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--c-primary);
  content: "";
  opacity: 0;
}

.capability-tabs button:hover {
  color: var(--c-ink-soft);
}

.capability-tabs button.is-active {
  background: rgba(75, 131, 247, 0.07);
  color: var(--c-ink);
}

.capability-tabs button.is-active::after {
  opacity: 1;
}

.capability-tabs button span {
  color: var(--c-primary-hover);
  font-family: var(--font-number);
  font-size: 10px;
}

.capability-tabs button b {
  font-size: 13px;
  font-weight: 600;
}

.capability-stage {
  margin-top: 32px;
}

.capability-panel {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(320px, 0.68fr) minmax(0, 1.48fr);
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-media);
  background: var(--c-surface);
}

.capability-panel[hidden] {
  display: none;
}

.capability-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px;
  border-right: 1px solid var(--c-line);
}

.capability-copy h3 {
  margin-top: 20px;
}

.capability-panel figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0e141f;
}

.capability-panel figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.capability-panel[data-cap-panel] figure {
  min-height: 0;
  aspect-ratio: 3454 / 1996;
}

.capability-panel[data-cap-panel="system"] figure,
.capability-panel[data-cap-panel="evidence"] figure,
.capability-panel[data-cap-panel="stats"] figure,
.capability-panel[data-cap-panel="journal"] figure,
.capability-panel[data-cap-panel="mentor"] figure {
  background: transparent;
}

.capability-panel[data-cap-panel="system"] figure img,
.capability-panel[data-cap-panel="evidence"] figure img,
.capability-panel[data-cap-panel="stats"] figure img,
.capability-panel[data-cap-panel="journal"] figure img,
.capability-panel[data-cap-panel="mentor"] figure img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 102.085%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

@media (min-width: 901px) {
  .capability-panel[data-cap-panel] .capability-copy {
    justify-content: flex-start;
    padding-top: clamp(52px, 5.2vw, 96px);
  }
}

.capability-panel .portrait-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #101622;
}

.capability-panel .portrait-figure img {
  width: min(100%, 440px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

/* Feature matrix */

.feature-matrix {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--c-line-soft);
  background:
    radial-gradient(circle at 84% 11%, rgba(75, 131, 247, 0.085), transparent 28%),
    radial-gradient(circle at 14% 88%, rgba(50, 190, 208, 0.045), transparent 24%),
    var(--c-canvas-soft);
}

.feature-matrix::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(101, 151, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 151, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.feature-matrix .shell {
  position: relative;
  z-index: 1;
}

.feature-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 240px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: auto 62px minmax(0, 1fr);
  row-gap: 6px;
  grid-column: span 4;
  overflow: hidden;
  padding: 14px 18px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(17, 28, 43, 0.98), rgba(10, 17, 28, 0.98)),
    var(--c-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  isolation: isolate;
  transition:
    border-color 260ms var(--ease),
    box-shadow 260ms var(--ease),
    transform 260ms var(--ease);
}

.feature-card::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(101, 151, 255, 0.5), transparent);
  content: "";
  opacity: 0.42;
}

.feature-card::after {
  display: none;
}

.feature-card-markets {
  min-height: 0;
  grid-column: span 4;
  grid-row: auto;
}

.feature-card-indicators {
  grid-column: span 4;
}

.feature-card-small {
  grid-column: span 4;
}

.feature-card-third {
  grid-column: span 4;
}

.feature-card-top,
.feature-card-content {
  position: relative;
  z-index: 3;
}

.feature-card-top {
  display: flex;
  min-height: 20px;
  grid-row: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-card-code {
  color: var(--c-primary-hover);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.feature-card-tag {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(101, 151, 255, 0.2);
  border-radius: 999px;
  background: rgba(75, 131, 247, 0.08);
  color: #8db1ff;
  font-family: var(--font-number);
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.feature-card-tag.is-cn {
  border-color: rgba(230, 172, 71, 0.25);
  background: rgba(230, 172, 71, 0.08);
  color: #e4b967;
}

.feature-card-tag.is-green {
  border-color: rgba(53, 196, 154, 0.24);
  background: rgba(53, 196, 154, 0.08);
  color: #62d3b0;
}

.feature-platform-icons {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(101, 151, 255, 0.24);
  border-radius: 999px;
  background: rgba(75, 131, 247, 0.08);
  color: #86a9f4;
}

.feature-platform-icons svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.feature-platform-icons i {
  width: 1px;
  height: 12px;
  background: rgba(134, 169, 244, 0.22);
}

.feature-card-content {
  width: 100%;
  grid-row: 3;
  align-self: stretch;
  padding-top: 8px;
  border-top: 1px solid rgba(136, 164, 207, 0.15);
}

.feature-card h3 {
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.feature-card-content > p {
  margin-top: 5px;
  color: var(--c-body);
  font-size: 11.5px;
  line-height: 1.5;
}

.feature-card-markets .feature-card-content {
  width: 100%;
}

.feature-card-markets .feature-card-content > p {
  font-size: 11.5px;
}

.feature-card-footnote {
  display: block;
  margin-top: 7px;
  color: var(--c-primary-hover);
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.feature-card-small .feature-card-content {
  width: 100%;
}

.feature-card-small h3 {
  font-size: 20px;
}

.feature-card-small .feature-card-content > p {
  color: #9da9ba;
  font-size: 11.25px;
}

.feature-art {
  position: relative;
  z-index: 0;
  top: auto;
  right: auto;
  width: min(100%, 180px);
  height: 62px;
  grid-row: 2;
  align-self: stretch;
  justify-self: center;
  margin: 0;
  opacity: 1;
  pointer-events: none;
  transition: opacity 260ms var(--ease);
}

.feature-art-markets {
  top: auto;
  right: auto;
  width: min(100%, 180px);
  opacity: 1;
}

.feature-art-indicators {
  top: auto;
  right: auto;
  width: min(100%, 180px);
}

.feature-card-small .feature-art {
  top: auto;
  right: auto;
  width: min(100%, 180px);
  opacity: 1;
}

.feature-card-third .feature-art {
  top: auto;
  right: auto;
  width: min(100%, 180px);
}

.feature-art path,
.feature-art circle,
.feature-art ellipse,
.feature-art rect {
  vector-effect: non-scaling-stroke;
}

.feature-art text {
  font-family: var(--font-number);
  font-size: 7px;
  letter-spacing: 0.025em;
}

.feature-ui-panel {
  fill: rgba(8, 15, 26, 0.96);
  stroke: rgba(122, 157, 215, 0.28);
  stroke-width: 1;
}

.feature-ui-divider {
  fill: none;
  stroke: rgba(136, 164, 207, 0.18);
  stroke-width: 1;
}

.feature-ui-label {
  fill: #8ba0c0;
  font-size: 7.4px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.feature-ui-kicker {
  fill: #566984;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.feature-ui-text {
  fill: #6f829f;
  font-size: 6.8px;
  font-weight: 500;
}

.feature-ui-text.is-bright {
  fill: #a7b9d3;
}

.feature-ui-number {
  fill: #8da1be;
  font-size: 6.8px;
  font-weight: 600;
  text-anchor: end;
}

.feature-ui-number.is-green,
.feature-ui-positive {
  fill: #49c7a2;
}

.feature-ui-negative {
  fill: #e76a68;
}

.feature-ui-positive,
.feature-ui-negative {
  font-size: 5.8px;
  font-weight: 600;
}

.feature-ui-symbol {
  fill: #9aacc7;
  font-size: 5.8px;
  font-weight: 600;
}

.feature-ui-muted-text {
  fill: #60728d;
  font-size: 5.7px;
  font-weight: 500;
}

.feature-ui-market-total {
  fill: #d3dceb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.feature-ui-led {
  stroke-width: 0;
}

.feature-ui-led.is-red,
.feature-ui-dot.is-red {
  fill: #f16461;
}

.feature-ui-led.is-amber,
.feature-ui-dot.is-amber {
  fill: #e4b967;
}

.feature-ui-led.is-green,
.feature-ui-dot.is-green {
  fill: #35c49a;
}

.feature-ui-dot.is-blue {
  fill: #6597ff;
}

.feature-ui-dot.is-cyan {
  fill: #32bed0;
}

.feature-ui-dot.is-violet {
  fill: #8f84c8;
}

.feature-ui-chip {
  fill: rgba(75, 131, 247, 0.1);
  stroke: rgba(101, 151, 255, 0.25);
  stroke-width: 0.8;
}

.feature-ui-chip-text {
  fill: #6e94e8;
  font-size: 5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.feature-ui-list rect,
.feature-ui-source-list rect,
.feature-ui-import-row rect,
.feature-ui-data-table rect,
.feature-ui-code rect,
.feature-ui-symbol-row rect {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(132, 158, 200, 0.11);
  stroke-width: 0.7;
}

.feature-ui-list rect.is-active,
.feature-ui-source-list rect.is-active,
.feature-ui-data-table rect.is-active,
.feature-ui-code rect.is-active {
  fill: rgba(75, 131, 247, 0.1);
  stroke: rgba(101, 151, 255, 0.3);
}

.feature-ui-grid {
  fill: none;
  stroke: rgba(127, 150, 186, 0.09);
  stroke-width: 0.75;
}

.feature-ui-area {
  opacity: 0.9;
}

.feature-ui-chart {
  fill: none;
  stroke: #32bed0;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-ui-chart.is-blue {
  stroke: #5d8dea;
  stroke-width: 1.1;
}

.feature-ui-scan-dot {
  fill: #79a4ff;
  stroke: rgba(121, 164, 255, 0.23);
  stroke-width: 7;
}

.feature-ui-code-text {
  fill: #7f90a9;
  font-size: 5.7px;
}

.feature-ui-line-no {
  fill: #43536c;
  font-size: 5.3px;
}

.feature-ui-code-blue {
  fill: #78a2ff;
  font-size: 5.6px;
  font-weight: 600;
}

.feature-ui-code-cyan {
  fill: #47c4d2;
  font-size: 5.6px;
  font-weight: 600;
}

.feature-ui-code-green {
  fill: #4cc8a4;
  font-size: 5.6px;
  font-weight: 600;
}

.feature-ui-candles path,
.feature-ui-mini-candles path {
  stroke-width: 0.8;
}

.feature-ui-candles path.is-up,
.feature-ui-mini-candles path.is-up {
  fill: rgba(53, 196, 154, 0.45);
  stroke: #35c49a;
}

.feature-ui-candles path.is-down,
.feature-ui-mini-candles path.is-down {
  fill: rgba(241, 100, 97, 0.42);
  stroke: #f16461;
}

.feature-ui-tooltip rect,
.feature-ui-toast rect,
.feature-ui-sync-control rect,
.feature-ui-local-badge rect {
  fill: rgba(12, 23, 38, 0.96);
  stroke: rgba(102, 151, 239, 0.28);
  stroke-width: 0.8;
}

.feature-ui-progress-track {
  fill: rgba(255, 255, 255, 0.05);
}

.feature-ui-progress-value {
  fill: rgba(53, 196, 154, 0.72);
}

.feature-ui-flow {
  fill: none;
  stroke: rgba(101, 151, 255, 0.78);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-ui-data-table text {
  fill: #687c98;
  font-size: 5.4px;
}

.feature-ui-data-table rect.is-active + text,
.feature-ui-data-table rect.is-active + text + text,
.feature-ui-data-table rect.is-active + text + text + text,
.feature-ui-data-table rect.is-active + text + text + text + text {
  fill: #91a9cb;
}

.feature-ui-file {
  fill: rgba(75, 131, 247, 0.09);
  stroke: rgba(101, 151, 255, 0.34);
  stroke-width: 0.8;
}

.feature-ui-ring-track {
  fill: none;
  stroke: rgba(122, 149, 191, 0.13);
  stroke-width: 5;
}

.feature-ui-ring-value {
  fill: none;
  stroke: #42c59e;
  stroke-width: 5;
  stroke-linecap: round;
}

.feature-ui-badge-grid rect {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(136, 161, 201, 0.14);
  stroke-width: 0.8;
}

.feature-ui-badge-grid rect.is-earned {
  fill: rgba(75, 131, 247, 0.1);
  stroke: rgba(101, 151, 255, 0.34);
}

.feature-ui-badge-grid path {
  fill: rgba(122, 162, 249, 0.22);
  stroke: rgba(122, 162, 249, 0.55);
  stroke-width: 0.7;
}

.feature-ui-toast circle {
  fill: rgba(53, 196, 154, 0.12);
  stroke: rgba(53, 196, 154, 0.46);
  stroke-width: 0.8;
}

.feature-ui-toast path {
  fill: none;
  stroke: #4ec7a4;
  stroke-width: 1.2;
}

.feature-ui-chart-labels text {
  fill: #536781;
  font-size: 5px;
  font-weight: 600;
}

.feature-ui-crosshair {
  fill: none;
  stroke: rgba(101, 151, 255, 0.3);
  stroke-width: 0.8;
  stroke-dasharray: 3 3;
}

.feature-ui-sync-control path {
  fill: #6d98f6;
}

.feature-ui-sync-control rect:nth-of-type(2) {
  fill: rgba(255, 255, 255, 0.05);
  stroke: none;
}

.feature-ui-sync-control rect:nth-of-type(3) {
  fill: rgba(101, 151, 255, 0.65);
  stroke: none;
}

.feature-ui-backup-source rect,
.feature-ui-encryption rect,
.feature-ui-backup-target > rect,
.feature-ui-cost-table rect,
.feature-ui-cost-dial circle,
.feature-ui-event-list rect,
.feature-ui-desktop-window rect {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(129, 157, 201, 0.15);
  stroke-width: 0.8;
}

.feature-ui-backup-source ellipse,
.feature-ui-backup-source path,
.feature-ui-encryption path,
.feature-ui-backup-target path {
  fill: none;
  stroke: rgba(101, 151, 255, 0.62);
  stroke-width: 1;
}

.feature-ui-backup-target g rect {
  fill: rgba(75, 131, 247, 0.09);
  stroke: rgba(101, 151, 255, 0.24);
  stroke-width: 0.7;
}

.feature-ui-backup-target g text {
  fill: #728fca;
  font-size: 4.5px;
  font-weight: 600;
}

.feature-ui-flow-packet {
  fill: #76a2ff;
  stroke: rgba(118, 162, 255, 0.22);
  stroke-width: 5;
}

.feature-ui-cost-table rect.is-active {
  fill: rgba(53, 196, 154, 0.08);
  stroke: rgba(53, 196, 154, 0.24);
}

.feature-ui-order-tag rect {
  fill: rgba(53, 196, 154, 0.14);
  stroke: rgba(53, 196, 154, 0.35);
  stroke-width: 0.8;
}

.feature-ui-cost-dial path {
  fill: none;
  stroke: rgba(101, 151, 255, 0.65);
  stroke-width: 1.3;
  stroke-linecap: round;
}

.feature-ui-event-list rect {
  fill: rgba(255, 255, 255, 0.024);
}

.feature-ui-event-list rect.is-hot {
  fill: rgba(241, 100, 97, 0.07);
  stroke: rgba(241, 100, 97, 0.23);
}

.feature-event-line {
  fill: none;
  stroke: rgba(241, 100, 97, 0.42);
  stroke-width: 0.9;
  stroke-dasharray: 3 3;
}

.feature-ui-desktop-window path {
  fill: none;
  stroke: rgba(99, 143, 216, 0.52);
  stroke-width: 0.9;
}

.feature-ui-desktop-window circle {
  fill: rgba(116, 148, 200, 0.48);
}

.feature-ui-desktop-window.is-front rect {
  fill: rgba(12, 22, 36, 0.98);
  stroke: rgba(101, 151, 255, 0.34);
}

.feature-ui-platform-pills rect {
  fill: rgba(75, 131, 247, 0.09);
  stroke: rgba(101, 151, 255, 0.22);
  stroke-width: 0.7;
}

.feature-ui-platform-pills text,
.feature-ui-local-badge text {
  fill: #7591c7;
  font-size: 4.8px;
  font-weight: 600;
}

.feature-ui-platform-pills path {
  fill: #7591c7;
  stroke: none;
}

.feature-grid-line {
  stroke: rgba(120, 144, 180, 0.12);
  stroke-width: 0.7;
}

.feature-draw {
  stroke-width: 1.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.feature-art-strong {
  stroke-width: 1.8;
}

.feature-bracket {
  stroke: rgba(101, 151, 255, 0.72);
  stroke-width: 1.4;
}

.feature-spark {
  stroke: rgba(50, 190, 208, 0.76);
  stroke-width: 1.5;
}

.feature-data-tick {
  stroke: rgba(101, 151, 255, 0.42);
  stroke-width: 1;
}

.feature-cost-stop {
  stroke: rgba(241, 100, 97, 0.54);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.feature-cost-target {
  stroke: rgba(53, 196, 154, 0.5);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.feature-progress-ring {
  stroke: rgba(53, 196, 154, 0.55);
  stroke-width: 3;
  stroke-linecap: round;
}

.feature-node {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
}

.feature-node circle:first-child {
  fill: rgba(75, 131, 247, 0.08);
  stroke: rgba(101, 151, 255, 0.62);
}

.feature-node circle:last-child,
.feature-node-dot {
  fill: #78a2ff;
  stroke: rgba(120, 162, 255, 0.22);
}

.feature-event-pulse {
  fill: rgba(241, 100, 97, 0.82);
  stroke: rgba(241, 100, 97, 0.28);
  stroke-width: 8;
}

.feature-card.is-visible .feature-draw {
  animation: feature-line-draw 880ms var(--ease) forwards;
  animation-delay: var(--draw-delay, 120ms);
}

.feature-card.is-visible .feature-node {
  animation: feature-node-in 420ms var(--ease) forwards;
  animation-delay: var(--node-delay, 700ms);
}

.feature-card.is-visible .feature-event-pulse {
  animation: feature-event-pulse 1800ms ease-out 720ms infinite;
}

@keyframes feature-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes feature-node-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes feature-event-pulse {
  0%,
  100% {
    stroke-width: 2;
    stroke-opacity: 0.58;
  }
  58% {
    stroke-width: 15;
    stroke-opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    border-color: rgba(101, 151, 255, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 18px 44px rgba(0, 0, 0, 0.16);
    transform: translateY(-3px);
  }

  .feature-card:hover .feature-art {
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .feature-card-markets,
  .feature-card-indicators,
  .feature-card-small,
  .feature-card-third {
    grid-column: span 3;
  }

  .feature-card-markets .feature-card-content {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .feature-grid {
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card,
  .feature-card-markets,
  .feature-card-indicators,
  .feature-card-small,
  .feature-card-third {
    min-height: 250px;
    grid-column: 1;
    grid-row: auto;
    padding: 18px 18px 20px;
  }

  .feature-card-content,
  .feature-card-markets .feature-card-content,
  .feature-card-small .feature-card-content {
    width: 100%;
  }

  .feature-card h3,
  .feature-card-small h3 {
    font-size: 20px;
  }

  .feature-card-markets .feature-art {
    top: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 180px);
    opacity: 1;
  }

  .feature-art-indicators {
    top: auto;
    right: auto;
    width: min(100%, 180px);
    opacity: 1;
  }

  .feature-card-small .feature-art,
  .feature-card-third .feature-art {
    top: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 180px);
    opacity: 1;
  }
}

/* Commerce */

.purchase {
  background: var(--c-canvas-soft);
}

.purchase .section-heading {
  margin-bottom: 26px;
}

.purchase .section-heading-split {
  grid-template-columns: 1fr;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(15, 25, 39, 0.99), rgba(9, 16, 26, 0.99)),
    var(--c-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 28px 80px rgba(0, 0, 0, 0.14);
  scrollbar-color: rgba(101, 151, 255, 0.34) transparent;
  scrollbar-width: thin;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.comparison-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.comparison-col-feature {
  width: 34%;
}

.comparison-col-plan {
  width: 33%;
}

.comparison-table th,
.comparison-table td {
  border-right: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
}

.comparison-table tr > :last-child {
  border-right: 0;
}

.comparison-table tbody tr:last-child > * {
  border-bottom-color: var(--c-line);
}

.commerce-label {
  color: var(--c-primary-hover);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.commerce-plan-badge {
  display: inline-flex;
  min-width: 46px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(144, 164, 194, 0.18);
  border-radius: 999px;
  background: rgba(144, 164, 194, 0.06);
  color: var(--c-muted);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.commerce-plan-badge-pro {
  border-color: rgba(101, 151, 255, 0.3);
  background: rgba(75, 131, 247, 0.12);
  color: #91b3ff;
}

.comparison-feature-head,
.comparison-plan-head {
  height: 76px;
  vertical-align: top;
}

.comparison-feature-head {
  position: sticky;
  z-index: 4;
  left: 0;
  padding: 18px 24px;
  background:
    radial-gradient(circle at 22% 14%, rgba(48, 193, 211, 0.065), transparent 34%),
    rgba(13, 22, 35, 0.99);
  text-align: left;
}

.comparison-feature-head strong {
  display: block;
  max-width: 260px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.comparison-plan-head {
  position: relative;
  padding: 20px 24px 16px;
  background: rgba(10, 18, 29, 0.76);
  text-align: left;
}

.comparison-plan-pro {
  background:
    radial-gradient(circle at 84% 8%, rgba(75, 131, 247, 0.15), transparent 38%),
    rgba(16, 27, 43, 0.92);
}

.comparison-plan-pro::before {
  position: absolute;
  top: -1px;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(101, 151, 255, 0.86), transparent);
  content: "";
}

.comparison-plan-head h3 {
  display: inline-block;
  margin: 0 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
  vertical-align: middle;
}

.comparison-table tbody th {
  position: sticky;
  z-index: 2;
  left: 0;
  padding: 10px 20px;
  background: rgba(13, 22, 35, 0.99);
  color: var(--c-ink-soft);
  font-size: 11.5px;
  font-weight: 540;
  line-height: 1.45;
  text-align: left;
}

.comparison-table tbody td {
  height: 40px;
  padding: 7px 18px;
  background: rgba(8, 15, 25, 0.52);
  color: var(--c-ink-soft);
  text-align: center;
  vertical-align: middle;
}

.comparison-table tbody td:last-child {
  background: rgba(75, 131, 247, 0.045);
}

.comparison-table tbody tr {
  transition: background 180ms var(--ease);
}

.comparison-table tbody tr:hover th,
.comparison-table tbody tr:hover td {
  background-color: rgba(101, 151, 255, 0.055);
}

.comparison-status {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.comparison-status::before {
  transform: translateY(-0.5px);
}

.comparison-status.is-yes {
  border-color: rgba(54, 204, 172, 0.32);
  background: rgba(54, 204, 172, 0.1);
  color: #5ad5b6;
}

.comparison-status.is-yes::before {
  content: "✓";
}

.comparison-status.is-no {
  border-color: rgba(135, 151, 177, 0.18);
  background: rgba(135, 151, 177, 0.055);
  color: #6d7b91;
}

.comparison-status.is-no::before {
  content: "×";
}

.comparison-value {
  display: inline-block;
  max-width: 250px;
  color: var(--c-body);
  font-size: 11.5px;
  font-weight: 520;
  line-height: 1.45;
}

.comparison-value.is-pro {
  color: var(--c-ink);
  font-weight: 600;
}

.comparison-table tfoot th,
.comparison-table tfoot td {
  padding: 14px 20px;
  border-bottom: 0;
  background: rgba(11, 19, 30, 0.96);
  vertical-align: middle;
}

.comparison-table tfoot th {
  position: sticky;
  z-index: 2;
  left: 0;
  color: var(--c-muted);
  font-size: 11.5px;
  font-weight: 560;
  text-align: left;
}

.comparison-table tfoot td {
  background: rgba(8, 15, 25, 0.68);
}

.comparison-table tfoot td:last-child {
  background:
    linear-gradient(90deg, rgba(75, 131, 247, 0.055), rgba(75, 131, 247, 0.1)),
    rgba(12, 22, 36, 0.94);
}

.comparison-actions-row .button {
  width: min(100%, 280px);
  min-height: 38px;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
}

.comparison-purchase-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
}

html[lang="en"] .comparison-purchase-icon {
  display: none;
}

.comparison-action-wrap {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

/* Download page */

.download-page {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  padding: 150px 0 112px;
  background:
    linear-gradient(180deg, rgba(12, 22, 37, 0.54), transparent 34%),
    var(--c-canvas-soft);
  isolation: isolate;
}

.download-page-atmosphere {
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -8%;
  left: -8%;
  height: 680px;
  background:
    radial-gradient(circle at 25% 38%, rgba(39, 180, 202, 0.13), transparent 34%),
    radial-gradient(circle at 74% 24%, rgba(75, 131, 247, 0.15), transparent 36%);
  filter: blur(18px);
  pointer-events: none;
}

.download-page-hero {
  max-width: 850px;
}

.download-page-hero h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(50px, 6.3vw, 82px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.download-page-hero > p:last-of-type {
  max-width: 620px;
  margin-top: 22px;
  color: var(--c-body);
  font-size: 17px;
  line-height: 1.7;
}

.download-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.download-platform-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(17, 29, 46, 0.98), rgba(9, 16, 26, 0.98)),
    var(--c-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 30px 80px rgba(0, 0, 0, 0.15);
}

.download-platform-card::before {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(101, 151, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 36px rgba(101, 151, 255, 0.025),
    0 0 0 72px rgba(101, 151, 255, 0.018);
  content: "";
  pointer-events: none;
}

.download-platform-mac {
  background:
    radial-gradient(circle at 92% 0%, rgba(71, 190, 206, 0.085), transparent 38%),
    linear-gradient(145deg, rgba(15, 27, 43, 0.98), rgba(9, 16, 26, 0.98)),
    var(--c-surface);
}

.download-platform-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
}

.download-platform-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(101, 151, 255, 0.25);
  border-radius: 15px;
  background: rgba(75, 131, 247, 0.085);
  color: #8eb1ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.download-platform-mac .download-platform-icon {
  border-color: rgba(58, 194, 203, 0.22);
  background: rgba(39, 180, 202, 0.07);
  color: #72d5dc;
}

.download-platform-icon svg {
  width: 25px;
  height: 25px;
  fill: currentcolor;
}

.download-platform-label {
  color: var(--c-primary-hover);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.download-platform-head h2 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.download-platform-summary {
  min-height: 48px;
  margin-top: 25px;
  color: var(--c-body);
  font-size: 13px;
  line-height: 1.7;
}

.download-requirements {
  margin-top: 24px;
  border-top: 1px solid var(--c-line-soft);
}

.download-requirements > div {
  display: grid;
  min-height: 42px;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--c-line-soft);
}

.download-requirements dt {
  color: var(--c-faint);
  font-size: 10px;
}

.download-requirements dd {
  color: var(--c-ink-soft);
  font-size: 11px;
  font-weight: 560;
  text-align: right;
}

.download-platform-button {
  min-height: 46px;
  margin-top: auto;
}

.download-file-name {
  margin-top: 10px;
  color: var(--c-faint);
  font-family: var(--font-number);
  font-size: 9px;
  letter-spacing: 0.025em;
  text-align: center;
}

.download-support {
  margin-top: 24px;
  padding: 30px 34px 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  background: var(--c-surface);
}

.download-support-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 32px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--c-line-soft);
}

.download-support-head h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.download-support-head > p {
  max-width: 540px;
  margin: 0;
  color: var(--c-body);
  font-size: 13px;
  line-height: 1.7;
}

.download-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.download-support-card {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  padding: 23px 22px;
  border-right: 1px solid var(--c-line);
  color: inherit;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms var(--ease);
}

.download-support-card:last-child,
html:not([lang="en"]) .download-support-card:nth-child(3),
html[lang="en"] .download-support-card:nth-child(4) {
  border-right: 0;
}

.download-support-card:hover {
  background: var(--c-surface-elevated);
  transform: translateY(-1px);
}

.download-support-card:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

.download-support-label {
  color: var(--c-primary-hover);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.download-support-card h3 {
  margin-top: 9px;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.download-support-card p {
  margin-top: 9px;
  color: var(--c-body);
  font-size: 11.5px;
  line-height: 1.65;
}

.download-support-card b {
  margin-top: auto;
  padding-top: 14px;
  color: var(--c-primary-hover);
  font-size: 11px;
  font-weight: 650;
}

.download-support-channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 16px;
}

.download-support-channel-copy {
  display: flex;
  min-width: 0;
  align-self: stretch;
  flex-direction: column;
}

.download-support-qr {
  display: block;
  width: 82px;
  height: 82px;
  border: 6px solid #fff;
  border-radius: 8px;
  object-fit: cover;
}

.download-support-en-only {
  display: none;
}

html[lang="en"] .download-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[lang="en"] .download-support-cn-only {
  display: none;
}

html[lang="en"] .download-support-en-only {
  display: flex;
}

.download-release {
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(13, 23, 37, 0.96), rgba(8, 15, 24, 0.98)),
    var(--c-surface);
}

.download-release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--c-line-soft);
}

.download-release-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.download-release-version {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1;
}

.download-release-date {
  color: var(--c-faint);
  font-family: var(--font-number);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.download-release-latest {
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(101, 151, 255, 0.24);
  border-radius: 999px;
  background: rgba(75, 131, 247, 0.08);
  color: #8eb1ff;
  font-size: 9px;
  font-weight: 650;
}

.download-release-link {
  color: var(--c-primary-hover);
  font-size: 11px;
  font-weight: 600;
}

.download-release-link:hover {
  color: var(--c-ink);
}

.download-release-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.download-release-list li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 9px 0;
  color: var(--c-body);
  font-size: 12.5px;
  line-height: 1.65;
}

.download-release-list li + li {
  border-top: 1px solid rgba(111, 136, 174, 0.07);
}

.download-release-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(101, 151, 255, 0.24);
  border-radius: 6px;
  background: rgba(75, 131, 247, 0.075);
  color: #8eb1ff;
  font-family: var(--font-number);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.download-release-tag.is-improved {
  border-color: rgba(224, 164, 88, 0.22);
  background: rgba(224, 164, 88, 0.07);
  color: #e6b779;
}

.download-release-tag.is-fixed {
  border-color: rgba(54, 204, 172, 0.22);
  background: rgba(54, 204, 172, 0.07);
  color: #67d7bd;
}

.download-page-footer .footer-bottom {
  margin-top: 0;
}

/* Guides */

.guides {
  background: var(--c-canvas);
}

.guides .section-heading h2 {
  margin-top: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--c-line-strong);
  border-bottom: 1px solid var(--c-line-strong);
}

.support-card {
  position: relative;
  display: flex;
  min-height: 284px;
  flex-direction: column;
  padding: 34px 32px;
  border-right: 1px solid var(--c-line);
  transition:
    background-color 200ms ease,
    transform 200ms var(--ease);
}

.support-card:last-child {
  border-right: 0;
}

.support-card:hover {
  background: rgba(255, 255, 255, 0.018);
  transform: translateY(-2px);
}

.support-card h3 {
  margin-top: 38px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.support-card p {
  margin-top: 14px;
  color: var(--c-body);
  font-size: 14px;
  line-height: 1.7;
}

.support-card b {
  margin-top: auto;
  padding-top: 26px;
  color: var(--c-primary-hover);
  font-size: 12px;
  font-weight: 600;
}

.support-card-social {
  overflow: hidden;
}

.support-brand-icon {
  position: absolute;
  top: 25px;
  right: 30px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
}

.support-brand-icon svg {
  width: 34px;
  height: 34px;
}

.support-brand-icon img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.support-brand-guide {
  color: #8eb1ff;
}

.support-brand-qq {
  color: #62b9ff;
}

.support-brand-wecom {
  color: #45d491;
}

.support-card-social h3,
.support-card-social p,
.support-card-social b {
  max-width: calc(100% - 132px);
}

.support-qr {
  position: absolute;
  right: 30px;
  bottom: 28px;
  width: 104px;
  height: 104px;
  border: 1px solid var(--c-line-strong);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.support-qr-qq {
  background: #242424;
  padding: 5px;
}

.support-qr-wecom {
  background: #fff;
  padding: 4px;
}

/* Final CTA and footer */

.final-cta {
  padding: 128px 0 136px;
  border-top: 1px solid var(--c-line-soft);
  background: var(--c-canvas-soft);
  text-align: center;
}

.final-cta h2 {
  max-width: 860px;
  margin: 17px auto 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.final-cta p:not(.section-kicker) {
  margin-top: 21px;
  color: var(--c-body);
  font-size: 16px;
}

.site-footer {
  padding: 72px 0 24px;
  border-top: 1px solid var(--c-line);
  background: #060910;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
}

.footer-brand > p {
  max-width: 380px;
  margin-top: 18px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.footer-links h2 {
  margin-bottom: 17px;
  color: var(--c-ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  margin-top: 11px;
  color: var(--c-muted);
  font-size: 12px;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--c-ink-soft);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  color: var(--c-faint);
  font-size: 11px;
}

.footer-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-utility {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: 11px;
  line-height: 1;
}

a.footer-utility {
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

a.footer-utility:hover {
  border-color: var(--c-line-strong);
  color: var(--c-ink-soft);
  transform: translateY(-1px);
}

a.footer-utility:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

.footer-utility svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-utility strong {
  color: var(--c-ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.footer-visit-count[data-state="ready"] svg {
  color: var(--c-up);
}

.footer-visit-count[data-state="unavailable"] {
  opacity: 0.72;
}

/* Reveal choreography */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 640ms var(--ease),
    transform 640ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy > * {
  opacity: 0;
  animation: hero-rise 720ms var(--ease) forwards;
}

.hero-copy > :nth-child(1) {
  animation-delay: 50ms;
}

.hero-copy > :nth-child(2) {
  animation-delay: 120ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 200ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 280ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 350ms;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */

@media (max-width: 1120px) {
  .shell {
    width: min(var(--container), calc(100% - 56px));
  }

  .hero .shell {
    width: min(var(--container-media), calc(100% - 42px));
  }

  .header-link {
    display: none;
  }

  .section-heading-split {
    gap: 56px;
  }

  .mode-panel,
  .capability-panel {
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.35fr);
  }

  #mode-panel-check,
  #mode-panel-signal {
    grid-template-columns: minmax(290px, 0.66fr) minmax(0, 1.55fr);
  }

  .mode-copy,
  .capability-copy {
    padding: 38px 32px;
  }

  .capability-tabs button {
    padding: 0 11px;
  }
}

@media (max-width: 900px) {
  :root {
    --section-space: 92px;
  }

  .header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: 16px 28px 24px;
    border-bottom: 1px solid var(--c-line);
    background: rgba(7, 11, 19, 0.985);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    min-height: 48px;
    padding: 14px 10px;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding: 138px 0 92px;
  }

  .hero-story {
    margin-top: 64px;
  }

  .section-heading-split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading-split > p {
    margin-top: 0;
  }

  .loop-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .loop-steps::before {
    display: none;
  }

  .mode-tabs button {
    min-height: 86px;
    padding: 17px 18px;
  }

  .mode-panel,
  .capability-panel {
    grid-template-columns: 1fr;
  }

  #mode-panel-check,
  #mode-panel-signal {
    grid-template-columns: 1fr;
  }

  .mode-copy,
  .capability-copy {
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .mode-visual,
  .capability-panel figure {
    min-height: 420px;
  }

  .mode-simulator {
    min-height: 500px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 40%);
  }

  .mode-kline {
    min-height: 500px;
  }

  .capability-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .capability-tabs button:nth-child(-n + 3) {
    border-bottom: 1px solid var(--c-line-soft);
  }

  .capability-panel .portrait-figure {
    min-height: 520px;
  }

  .download-platform-grid {
    grid-template-columns: 1fr;
  }

  .download-platform-card {
    min-height: 410px;
  }

  .download-support-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .download-support-grid {
    grid-template-columns: 1fr;
  }

  .download-support-card,
  .download-support-card:last-child,
  html[lang="en"] .download-support-card:nth-child(4) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .download-support-card:last-child,
  html:not([lang="en"]) .download-support-card:nth-child(3),
  html[lang="en"] .download-support-card:nth-child(4) {
    border-bottom: 0;
  }

  html[lang="en"] .download-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --section-space: 72px;
  }

  .shell,
  .hero .shell {
    width: calc(100% - 40px);
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    height: 28px;
  }

  .header-actions {
    gap: 6px;
  }

  .hero {
    padding: 120px 0 72px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 48px);
    letter-spacing: -0.045em;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.68;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-story {
    margin-top: 52px;
  }

  .hero-product {
    width: calc(100% + 24px);
    margin-top: 0;
    margin-left: -12px;
  }

  .hero-story-annotations {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 12px;
  }

  .hero-story-label {
    min-height: 72px;
  }

  .hero-product figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
  }

  .download-support {
    padding: 26px 24px 28px;
  }

  .download-support-head h2 {
    font-size: 24px;
  }

  .download-support-card {
    padding: 21px 0;
  }

  .download-support-channel {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .download-support-qr {
    width: 76px;
    height: 76px;
  }

  .hero-product .hero-demo-caption {
    width: calc(100% - 24px);
    min-height: 0;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 13px 14px;
  }

  .hero-demo-caption p {
    padding-left: 16px;
    font-size: 11px;
  }

  .hero-demo-intro {
    min-width: 160px;
    padding: 9px 11px 10px;
  }

  .hero-demo-intro > span,
  .hero-demo-signal-copy > span {
    font-size: 7px;
  }

  .hero-demo-intro strong,
  .hero-demo-signal-copy strong {
    font-size: 11px;
  }

  .hero-demo-intro small,
  .hero-demo-signal-copy small {
    margin-top: 3px;
    font-size: 7px;
  }

  .hero-demo-signal-copy {
    min-width: 105px;
    padding: 8px 10px 9px;
  }

  .hero-demo-signal-point {
    width: 7px;
    height: 7px;
    border-width: 1px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 9vw, 40px);
  }

  .section-heading > p:last-child,
  .section-heading-split > p {
    font-size: 15px;
  }

  html[lang="zh-CN"] .mode-intro {
    white-space: normal;
  }

  .loop-steps {
    grid-template-columns: 1fr;
  }

  .loop-steps li {
    min-height: 180px;
    padding: 22px;
  }

  .mode-tabs {
    grid-template-columns: 1fr;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
  }

  .mode-tabs button {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .mode-tabs button:last-child {
    border-bottom: 0;
  }

  .mode-panel,
  .capability-panel {
    min-height: 0;
    border-radius: var(--radius-card);
  }

  .mode-copy,
  .capability-copy {
    padding: 31px 24px;
  }

  .mode-copy h3,
  .capability-copy h3 {
    font-size: 28px;
  }

  .mode-visual,
  .capability-panel figure {
    min-height: 300px;
  }

  .mode-video-demo {
    min-height: 0;
  }

  .mode-video-callout {
    top: 76.8%;
    left: 34%;
    width: 39%;
    padding: 6px 7px 7px;
  }

  .mode-video-callout span {
    font-size: 6px;
  }

  .mode-video-callout strong {
    font-size: 7px;
  }

  .mode-video-leader {
    top: 70%;
    left: 72%;
    width: 9%;
    height: 7%;
  }

  .mode-video-backtest .mode-video-callout {
    top: 68.1%;
    left: 42%;
    width: 35%;
  }

  .mode-video-backtest .mode-video-leader {
    top: 64.2%;
    left: 77%;
    width: 4.2%;
    height: 3.9%;
  }

  .mode-sidecar {
    width: 46%;
    min-width: 150px;
  }

  .mode-chart-overlay {
    right: 43%;
    width: 57%;
  }

  .mode-sidecar-head {
    min-height: 58px;
    padding: 9px 8px;
  }

  .mode-sidecar-title {
    gap: 5px;
  }

  .mode-sidecar-symbol {
    font-size: 15px;
  }

  .mode-sidecar-title b {
    font-size: 8px;
  }

  .mode-sidecar-title small,
  .mode-rule small {
    display: none;
  }

  .mode-sidecar-head > em {
    padding: 5px;
    font-size: 6px;
  }

  .mode-sidecar-summary,
  .mode-signal-state {
    min-height: 50px;
    padding: 9px;
  }

  .mode-rule {
    min-height: 55px;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 5px;
    padding: 8px 9px;
  }

  .mode-rule > em {
    padding: 4px;
    font-size: 6px;
  }

  .mode-sidecar-foot,
  .mode-backtest-rules {
    display: none;
  }

  .mode-chart-status,
  .mode-backtest-meter {
    bottom: 10px;
    left: 10px;
    transform: scale(0.78);
    transform-origin: left bottom;
  }

  .mode-signal-badge {
    top: 25%;
    left: 20%;
    transform: scale(0.78);
    transform-origin: left top;
  }

  .mode-simulator {
    grid-template-columns: 1fr;
  }

  .mode-chart-app {
    min-height: 330px;
  }

  .mode-kline {
    height: 330px;
    min-height: 330px;
  }

  .mode-control-panel {
    min-height: 430px;
    border-top: 1px solid #353e50;
    border-left: 0;
  }

  .mode-control-head {
    grid-template-columns: 24px 1px auto minmax(0, 1fr) auto;
  }

  .mode-control-head > b,
  .mode-control-section b,
  .mode-auto-status b {
    font-size: 12px;
  }

  .mode-chip {
    padding: 8px 11px;
    font-size: 9px;
  }

  .mode-check-rule b,
  .mode-plan-row b {
    font-size: 10px;
  }

  .mode-check-rule small,
  .mode-plan-row small,
  .mode-control-section-head > small,
  .mode-plan-title small,
  .mode-panel-note,
  .mode-auto-table dt,
  .mode-auto-table dd {
    font-size: 8px;
  }

  .capability-tabs {
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
  }

  .capability-tabs button {
    min-height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid var(--c-line-soft);
  }

  .capability-tabs button:nth-child(odd) {
    border-right: 1px solid var(--c-line-soft);
  }

  .capability-tabs button:nth-child(n + 5) {
    border-bottom: 0;
  }

  .capability-stage {
    margin-top: 20px;
  }

  .capability-panel .portrait-figure {
    min-height: 420px;
  }

  .comparison-table {
    min-width: 760px;
  }

  .comparison-feature-head,
  .comparison-plan-head {
    height: 76px;
    padding: 16px 20px;
  }

  .comparison-table tfoot th,
  .comparison-table tfoot td {
    padding: 12px 14px;
  }

  .comparison-table tbody th {
    padding: 9px 16px;
  }

  .comparison-table tbody td {
    height: 40px;
    padding: 7px 14px;
  }

  .download-page {
    padding: 122px 0 76px;
  }

  .download-page-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .download-platform-grid {
    margin-top: 38px;
  }

  .download-platform-card,
  .download-release {
    padding: 26px 22px;
  }

  .download-release-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .download-requirements > div {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-card {
    min-height: 240px;
    padding: 29px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .support-card:last-child {
    border-bottom: 0;
  }

  .support-card h3 {
    margin-top: 28px;
  }

  .final-cta {
    padding: 88px 0 96px;
  }

  .final-cta h2 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    gap: 22px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 44px;
  }

  .footer-utilities {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .menu-toggle {
    min-width: 54px;
  }

  .hero h1 {
    font-size: clamp(33px, 9.9vw, 39px);
  }

  .capability-tabs button {
    gap: 8px;
    padding: 0 10px;
  }

  .capability-tabs button b {
    font-size: 12px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-utilities {
    width: 100%;
  }

  .footer-utility {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  .hero-copy > * {
    opacity: 1;
    transform: none;
  }

  .mode-signal-leader,
  .mode-signal-halo,
  .mode-signal-core,
  .mode-signal-badge,
  .mode-trade-mark {
    opacity: 1;
    transform: none;
  }

  .mode-backtest-path {
    stroke-dashoffset: 0;
  }

  .mode-backtest-meter > i > u {
    transform: scaleX(1);
  }

  .mode-kline-candle,
  .mode-signal-marker,
  .mode-signal-callout,
  .mode-order-marker,
  .mode-order-link,
  .mode-state-after {
    opacity: 1;
  }

  .mode-ma-reveal {
    transform: scaleX(1);
  }

  .feature-draw {
    stroke-dashoffset: 0;
  }

  .feature-node {
    opacity: 1;
    transform: scale(1);
  }

  .mode-state-before {
    opacity: 0;
  }
}
