:root {
  color-scheme: dark;
  --bg: #080d18;
  --bg-soft: #0d1524;
  --surface: #111b2c;
  --surface-strong: #17243a;
  --ink: #f6f9ff;
  --muted: #a7b4c8;
  --line: rgba(154, 183, 220, 0.18);
  --blue: #4a91ff;
  --blue-strong: #2f7df3;
  --cyan: #78d6ee;
  --green: #56d58a;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7fc;
  --bg-soft: #eaf1f9;
  --surface: #ffffff;
  --surface-strong: #edf5ff;
  --ink: #0b1320;
  --muted: #526174;
  --line: rgba(24, 46, 78, 0.14);
  --blue: #2f7df3;
  --blue-strong: #1d64d8;
  --cyan: #1f88a8;
  --green: #16865c;
  --shadow: 0 22px 70px rgba(27, 58, 94, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-smooth-scroll="off"] {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(74, 145, 255, 0.26), transparent 30rem),
    radial-gradient(circle at 82% 12%, rgba(120, 214, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 50% 46%, rgba(93, 63, 211, 0.11), transparent 34rem),
    linear-gradient(180deg, #090e19 0%, #050914 38%, #08101d 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(47, 125, 243, 0.18), transparent 30rem),
    radial-gradient(circle at 82% 14%, rgba(31, 136, 168, 0.14), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #edf4fb 46%, #f8fbff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header,
.hero,
.stats-strip,
.section,
.suite-section,
.education-section,
.workflow-band,
.concepts-band,
.safety-strip,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  z-index: -1;
  border-bottom: 1px solid rgba(154, 183, 220, 0.08);
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.86), rgba(8, 13, 24, 0.56));
  content: "";
  transform: translateX(-50%);
}

:root[data-theme="light"] .site-header::before {
  border-bottom-color: rgba(24, 46, 78, 0.1);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.92), rgba(246, 250, 255, 0.7));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand span {
  color: var(--ink);
}

:root[data-theme="light"] .brand span {
  color: var(--blue);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 26px rgba(74, 145, 255, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown > a {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.nav-dropdown > a.active,
.nav-dropdown > a:hover {
  color: var(--ink);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  z-index: 30;
  display: grid;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 21, 36, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

:root[data-theme="light"] .nav-menu {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(28, 56, 92, 0.16);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-menu a:hover {
  background: rgba(74, 145, 255, 0.13);
  color: var(--ink);
}

.nav a:hover {
  color: var(--ink);
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-toggle,
.theme-toggle,
.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted);
}

.theme-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  color: var(--muted);
}

.theme-toggle:hover {
  border-color: rgba(74, 145, 255, 0.36);
  color: var(--blue);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.language-toggle span {
  min-width: 24px;
}

.language-toggle span.active {
  color: var(--ink);
}

.language-toggle i {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 54px 0 76px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 24px;
  border: 1px solid rgba(86, 213, 138, 0.3);
  border-radius: 999px;
  background: rgba(86, 213, 138, 0.1);
  padding: 0 16px;
  color: #9df0bc;
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-subtitle {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

.button.primary {
  border-color: rgba(74, 145, 255, 0.65);
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(47, 125, 243, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.hero-notice {
  max-width: 680px;
  margin: 22px 0 0;
  color: #8ea0ba;
  font-size: 13px;
  line-height: 1.7;
}

.product-mockup {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 21, 36, 0.84);
  box-shadow: var(--shadow);
}

.mockup-top {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.mockup-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5b708c;
}

.mockup-top strong {
  margin-left: 8px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 14px;
  padding: 16px;
}

.spread-panel,
.card-panel,
.activity-panel,
.feature-card,
.step-card,
.callout-card,
.concept-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.spread-panel,
.card-panel,
.activity-panel {
  padding: 18px;
}

.activity-panel {
  grid-column: 1 / -1;
}

.panel-title,
.rule-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.panel-title b,
.rule-row b {
  color: var(--ink);
}

.bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 10px;
  height: 220px;
  margin-top: 18px;
  border-bottom: 1px solid rgba(154, 183, 220, 0.22);
}

.bars i {
  display: block;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  opacity: 0.92;
}

.rule-row {
  align-items: center;
  min-height: 46px;
  border-top: 1px solid var(--line);
}

.rule-row:first-of-type {
  margin-top: 12px;
}

.activity-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.activity-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.resource-grid a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
}

.resource-grid strong,
.resource-grid span {
  grid-column: 1 / -1;
}

.resource-grid strong {
  font-size: 18px;
}

.resource-grid span {
  color: var(--muted);
  line-height: 1.58;
}

.resource-grid svg {
  align-self: end;
  justify-self: end;
  color: var(--cyan);
}

.stats-strip article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.stats-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.section,
.suite-section,
.education-section,
.workflow-band,
.concepts-band,
.safety-strip {
  padding: 76px 0;
}

.suite-section {
  padding-top: 28px;
}

.suite-heading {
  max-width: 880px;
}

.suite-list {
  display: grid;
  gap: 22px;
}

.suite-item {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr);
  gap: 28px;
  align-items: stretch;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 20%, rgba(74, 145, 255, 0.22), transparent 28rem),
    rgba(255, 255, 255, 0.045);
  padding: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.suite-item.pulse {
  background:
    radial-gradient(circle at 78% 20%, rgba(120, 214, 238, 0.2), transparent 28rem),
    rgba(255, 255, 255, 0.045);
}

.suite-item.funding {
  background:
    radial-gradient(circle at 78% 20%, rgba(86, 213, 138, 0.16), transparent 28rem),
    rgba(255, 255, 255, 0.045);
}

.suite-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.suite-label {
  width: fit-content;
  margin-bottom: 22px;
  border: 1px solid rgba(120, 214, 238, 0.3);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.suite-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
}

.suite-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.suite-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.suite-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: #c7d4e6;
  font-size: 13px;
  font-weight: 800;
}

.suite-visual {
  min-height: 360px;
  border: 1px solid rgba(154, 183, 220, 0.2);
  border-radius: 18px;
  background: rgba(6, 11, 20, 0.55);
  padding: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.core-visual {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}

.card-stack {
  position: relative;
  min-height: 230px;
}

.strategy-mini {
  position: absolute;
  width: min(82%, 360px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(23, 36, 58, 0.92);
  padding: 22px;
  transform: translate(70px, 68px);
}

.strategy-mini.active {
  transform: translate(20px, 20px);
  background: linear-gradient(145deg, rgba(74, 145, 255, 0.28), rgba(23, 36, 58, 0.92));
  animation: liftCard 4.8s ease-in-out infinite;
}

.strategy-mini strong,
.strategy-mini span {
  display: block;
}

.strategy-mini strong {
  margin-bottom: 18px;
  font-size: 20px;
}

.strategy-mini span {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
}

.log-stream {
  display: grid;
  gap: 8px;
}

.log-stream span {
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.045);
  padding: 9px 12px;
  color: var(--muted);
}

.ticker-head,
.ticker-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
}

.ticker-head {
  margin-bottom: 12px;
  color: #7f90aa;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-row {
  min-height: 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  animation: pulseRow 3.8s ease-in-out infinite;
}

.ticker-row:nth-child(odd) {
  animation-delay: 0.6s;
}

.ticker-row b {
  color: var(--ink);
}

.ticker-row i {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.funding-visual {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.funding-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.funding-top strong {
  color: var(--ink);
}

.curve-chart {
  position: relative;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(154, 183, 220, 0.1) 45px),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(154, 183, 220, 0.08) 75px);
}

.curve-chart span {
  position: absolute;
  bottom: 0;
  width: 18px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--green), var(--blue));
  animation: chartPulse 4s ease-in-out infinite;
}

.funding-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.funding-metrics b {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

@keyframes liftCard {
  0%,
  100% {
    transform: translate(20px, 20px);
  }
  50% {
    transform: translate(30px, 12px);
  }
}

@keyframes pulseRow {
  0%,
  100% {
    background: transparent;
  }
  50% {
    background: rgba(74, 145, 255, 0.08);
  }
}

@keyframes chartPulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.safety-strip h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.feature-card p,
.step-card p,
.concept-grid p,
.faq-list p,
.site-footer p {
  color: var(--muted);
  line-height: 1.72;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 250px;
  padding: 22px;
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(74, 145, 255, 0.14);
  color: var(--cyan);
}

.feature-card h3,
.step-card h3,
.concept-grid h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.workflow-band,
.concepts-band {
  border-block: 1px solid var(--line);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.mode-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 24px;
}

.mode-card span {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 14px;
  background: rgba(74, 145, 255, 0.16);
  color: var(--cyan);
  font-size: 18px;
  font-weight: 900;
}

.mode-card h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.mode-card p {
  color: var(--muted);
  line-height: 1.68;
}

.step-card {
  min-height: 250px;
  padding: 24px;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.setup-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: start;
}

.exchange-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.exchange-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

.exchange-table th,
.exchange-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.exchange-table th {
  color: var(--ink);
  font-weight: 900;
}

.exchange-table td {
  color: var(--muted);
}

.exchange-table tr:last-child td {
  border-bottom: 0;
}

.exchange-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.exchange-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0 18px;
  font-weight: 800;
}

.exchange-list a:hover {
  border-color: rgba(120, 214, 238, 0.46);
  background: rgba(74, 145, 255, 0.1);
}

.callout-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.callout-card div,
.safety-strip p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.callout-card svg {
  flex: 0 0 auto;
  color: var(--green);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.concept-grid article {
  min-height: 220px;
  padding: 24px;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

.education-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  align-items: stretch;
}

.education-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.education-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.education-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.education-copy .button {
  width: fit-content;
  margin-top: 18px;
}

.video-card {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(74, 145, 255, 0.34), transparent 14rem),
    linear-gradient(145deg, rgba(23, 36, 58, 0.88), rgba(6, 11, 20, 0.92));
}

.play-button {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.08);
}

.play-button::after {
  position: absolute;
  top: 25px;
  left: 31px;
  width: 0;
  height: 0;
  border-bottom: 14px solid transparent;
  border-left: 20px solid var(--blue);
  border-top: 14px solid transparent;
  content: "";
}

.video-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 28px;
  opacity: 0.28;
}

.video-lines i {
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  animation: chartPulse 3s ease-in-out infinite;
}

.video-lines i:nth-child(2) {
  animation-delay: 0.4s;
}

.video-lines i:nth-child(3) {
  animation-delay: 0.8s;
}

.video-lines i:nth-child(4) {
  animation-delay: 1.2s;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 14px 0 0;
}

.safety-strip {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.safety-strip div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.safety-strip p {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.safety-strip svg {
  flex: 0 0 auto;
  color: var(--cyan);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 42px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(74, 145, 255, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.04);
  margin-bottom: 28px;
  padding: 22px;
}

.contact-copy {
  max-width: 720px;
}

:root[data-theme="light"] .contact-panel {
  background:
    radial-gradient(circle at 8% 0%, rgba(47, 125, 243, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 44px rgba(27, 58, 94, 0.08);
}

.contact-panel h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-links a {
  position: relative;
  display: grid;
  min-height: 96px;
  align-content: space-between;
  border: 1px solid rgba(154, 183, 220, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 15px;
}

:root[data-theme="light"] .contact-links a {
  background: rgba(255, 255, 255, 0.58);
}

.contact-links span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact-links strong {
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.contact-links svg {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.contact-links a:hover {
  border-color: rgba(74, 145, 255, 0.42);
  background: rgba(74, 145, 255, 0.08);
}

.product-contact {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 34px 0 0;
}

.product-contact .contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.product-contact .contact-copy {
  display: block;
  max-width: 720px;
  opacity: 1;
  visibility: visible;
}

.site-footer.product-footer {
  border-top: 0;
  padding-top: 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.site-footer p {
  max-width: 880px;
  margin-bottom: 0;
  font-size: 13px;
}

.brand small {
  border: 1px solid rgba(86, 213, 138, 0.26);
  border-radius: 999px;
  padding: 5px 9px;
  color: #9df0bc;
  font-size: 12px;
  font-weight: 800;
}

:root[data-theme="light"] .brand small {
  border-color: rgba(47, 125, 243, 0.16);
  background: rgba(47, 125, 243, 0.07);
  color: #4673a8;
}

.nav a.active {
  color: var(--ink);
}

.product-page {
  position: relative;
  isolation: isolate;
}

.product-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(74, 145, 255, 0.24), transparent 30rem),
    radial-gradient(ellipse at 82% 22%, rgba(148, 116, 255, 0.14), transparent 32rem),
    radial-gradient(ellipse at 44% 70%, rgba(51, 226, 183, 0.08), transparent 34rem),
    radial-gradient(ellipse at 50% 36%, rgba(255, 255, 255, 0.035), transparent 42rem),
    linear-gradient(180deg, #060a14, #08111f 52%, #050914);
  content: "";
  opacity: 1;
  pointer-events: none;
}

:root[data-theme="light"] .product-page::before {
  background:
    radial-gradient(ellipse at 18% 16%, rgba(47, 125, 243, 0.15), transparent 30rem),
    radial-gradient(ellipse at 82% 22%, rgba(148, 116, 255, 0.1), transparent 32rem),
    radial-gradient(ellipse at 44% 70%, rgba(31, 136, 168, 0.07), transparent 34rem),
    linear-gradient(180deg, #f7fbff, #eef5fc 55%, #f8fbff);
}

.section-float-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 15;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(154, 183, 220, 0.14);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.58);
  padding: 8px;
  backdrop-filter: blur(18px);
  transform: translateY(-50%);
}

:root[data-theme="light"] .section-float-nav {
  background: rgba(255, 255, 255, 0.72);
}

.section-float-nav a {
  display: grid;
  width: 10px;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(214, 223, 239, 0.36);
  border-radius: 50%;
  color: transparent;
  white-space: nowrap;
}

.section-float-nav a:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 18px rgba(74, 145, 255, 0.8);
}

.product-intro {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 0;
}

.intro-copy {
  max-width: 920px;
  margin-bottom: 20px;
}

.intro-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
}

.intro-copy p,
.intro-note {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  word-break: normal;
  overflow-wrap: normal;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.intro-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid rgba(74, 145, 255, 0.32);
  border-radius: 999px;
  background: rgba(74, 145, 255, 0.08);
  padding: 8px 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}

.intro-action:hover {
  border-color: rgba(120, 214, 238, 0.5);
  background: rgba(74, 145, 255, 0.13);
  color: var(--ink);
}

.intro-action.secondary {
  border-color: rgba(154, 183, 220, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.intro-action.secondary:hover {
  border-color: rgba(74, 145, 255, 0.36);
  color: var(--blue);
}

.intro-action svg {
  width: 15px;
  height: 15px;
}

.mode-carousel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 0 0;
}

.mode-slide {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 18%, rgba(74, 145, 255, 0.14), transparent 12rem),
    rgba(255, 255, 255, 0.045);
  padding: 16px;
}

:root[data-theme="light"] .mode-slide {
  background:
    radial-gradient(circle at 84% 18%, rgba(47, 125, 243, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.58);
}

.mode-slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.mode-slide-head strong {
  color: var(--blue);
  font-size: 24px;
}

.mode-slide-head span {
  display: flex;
  gap: 6px;
}

.mode-token {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.mode-token.spot {
  background: linear-gradient(135deg, #13b83e, #69e878);
}

.mode-token.future {
  background: linear-gradient(135deg, #f2b500, #ffd84d);
}

.mode-token.rate {
  background: linear-gradient(135deg, #8a35f2, #c45bff);
}

.mode-slide h3 {
  margin-bottom: 9px;
  font-size: 17px;
}

.mode-slide p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mode-slide small {
  display: inline-flex;
  margin-top: auto;
  border: 1px solid rgba(154, 183, 220, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  padding: 6px 8px;
  color: rgba(213, 224, 240, 0.68);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

:root[data-theme="light"] .mode-slide small {
  border-color: rgba(24, 46, 78, 0.1);
  background: rgba(255, 255, 255, 0.34);
  color: rgba(82, 97, 116, 0.78);
}

.intro-note {
  width: 100%;
  max-width: none;
  margin: 10px 0 28px;
  border: 1px solid rgba(255, 189, 89, 0.16);
  border-radius: 16px;
  background: rgba(255, 189, 89, 0.055);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.68;
}

:root[data-theme="light"] .intro-note {
  background: rgba(255, 181, 71, 0.08);
  border-color: rgba(184, 124, 26, 0.16);
}

.support-overview {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

:root[data-theme="light"] .support-overview {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.support-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
}

.support-heading h3 {
  margin: 0;
  font-size: 22px;
}

.support-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 4px;
  touch-action: auto;
}

.support-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.support-table-wrap::-webkit-scrollbar-track {
  background: rgba(154, 183, 220, 0.08);
}

.support-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(74, 145, 255, 0.38);
  background-clip: padding-box;
}

.support-table {
  width: max-content;
  min-width: max(900px, 100%);
  border-collapse: collapse;
  font-size: 14px;
}

.support-table th,
.support-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.support-table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 900;
}

.api-content .api-support-section {
  padding: 26px;
}

.api-content .api-support-section .support-overview {
  margin-top: 0;
}

.support-table td {
  color: var(--muted);
}

.support-table tr:last-child td {
  border-bottom: 0;
}

.support-table strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .support-table-wrap {
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
  }

  .support-table,
  .support-table tbody,
  .support-table tr,
  .support-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .support-table thead {
    display: none;
  }

  .support-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .support-table tr {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    margin-bottom: 10px;
    padding: 10px;
  }

  :root[data-theme="light"] .support-table tr {
    background: rgba(255, 255, 255, 0.58);
  }

  .support-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 0;
    padding: 7px 8px;
    text-align: right;
  }

  .support-table td::before {
    flex: 0 0 min(46%, 170px);
    color: var(--muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
  }

  .support-table td:first-child {
    display: block;
    padding-bottom: 10px;
    text-align: left;
  }

  .support-table td:first-child::before {
    display: none;
  }
}

.support-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.support-status.yes {
  background: rgba(86, 213, 138, 0.12);
  color: var(--green);
}

.support-status.no {
  background: rgba(255, 102, 112, 0.12);
  color: #ff6670;
}

.support-muted {
  color: rgba(167, 180, 200, 0.58);
}

.exchange-link {
  color: var(--ink);
  text-decoration: none;
}

.exchange-link:hover,
.exchange-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.showcase-list {
  display: grid;
  gap: 34px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 86px;
}

.showcase {
  scroll-margin-top: 150px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
  min-height: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(35, 55, 88, 0.72), rgba(8, 13, 24, 0.76)),
    radial-gradient(circle at 78% 28%, rgba(74, 145, 255, 0.2), transparent 26rem),
    rgba(255, 255, 255, 0.045);
  padding: 34px;
  transform: translateY(28px);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease, border-color 240ms ease;
}

:root[data-theme="light"] .showcase {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(236, 244, 252, 0.74)),
    radial-gradient(circle at 78% 28%, rgba(47, 125, 243, 0.14), transparent 26rem);
  box-shadow: var(--shadow);
}

.showcase.visible {
  opacity: 1;
  transform: translateY(0);
}

.showcase:first-child {
  opacity: 1;
  transform: translateY(0);
}

.showcase::after {
  position: absolute;
  inset: auto 8% -30% 8%;
  height: 46%;
  border-radius: 50%;
  background: rgba(74, 145, 255, 0.14);
  filter: blur(70px);
  content: "";
  pointer-events: none;
}

.showcase:hover {
  border-color: rgba(120, 214, 238, 0.34);
}

.showcase-heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-start;
  max-width: 100%;
  margin-bottom: 16px;
}

.showcase-copy h2 {
  flex: 0 1 auto;
  min-width: 0;
  margin-bottom: 0;
  max-width: 920px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  text-wrap: balance;
}

.showcase-copy p:not(.eyebrow) {
  max-width: 840px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.pill-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd8e9;
  font-size: 13px;
  font-weight: 800;
}

.showcase-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  flex: 0 1 auto;
  margin-top: 4px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid rgba(154, 183, 220, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 8px 12px;
  color: #dce7f8;
  font-size: 14px;
  font-weight: 600;
}

:root[data-theme="light"] .text-action {
  background: rgba(255, 255, 255, 0.52);
  color: #1c385a;
}

.text-action:hover {
  border-color: rgba(120, 214, 238, 0.48);
  background: rgba(74, 145, 255, 0.08);
}

.text-action svg {
  width: 15px;
  height: 15px;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-visual {
  position: relative;
  z-index: 1;
  min-height: 470px;
}

.demo-frame {
  position: relative;
  height: 100%;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(154, 183, 220, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 24%, rgba(74, 145, 255, 0.16), transparent 18rem),
    rgba(7, 12, 22, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 0 80px rgba(74, 145, 255, 0.06);
}

:root[data-theme="light"] .demo-frame {
  background:
    radial-gradient(circle at 50% 24%, rgba(47, 125, 243, 0.14), transparent 18rem),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(27, 58, 94, 0.14), inset 0 0 80px rgba(47, 125, 243, 0.06);
}

.screenshot-demo {
  min-height: 0;
}

.demo-link {
  position: relative;
  display: block;
  color: inherit;
  isolation: isolate;
}

.demo-link::before,
.demo-link::after {
  position: absolute;
  inset: 12% 5% 0;
  z-index: -1;
  border-radius: 36px;
  content: "";
  pointer-events: none;
}

.demo-link::before {
  background:
    radial-gradient(ellipse at 18% 24%, rgba(86, 195, 255, 0.26), transparent 44%),
    radial-gradient(ellipse at 76% 18%, rgba(148, 116, 255, 0.22), transparent 42%),
    radial-gradient(ellipse at 48% 92%, rgba(51, 226, 183, 0.16), transparent 44%),
    radial-gradient(ellipse at 52% 50%, rgba(255, 255, 255, 0.12), transparent 58%);
  filter: blur(42px);
  opacity: 0.88;
  transform: scale(1.02);
}

.demo-link::after {
  inset: 20% 10% 9%;
  border-radius: 28px;
  box-shadow:
    0 0 80px rgba(86, 195, 255, 0.16),
    0 0 120px rgba(148, 116, 255, 0.12),
    0 34px 110px rgba(0, 0, 0, 0.34);
  opacity: 0.82;
}

:root[data-theme="light"] .demo-link::before {
  background:
    radial-gradient(ellipse at 18% 24%, rgba(47, 125, 243, 0.18), transparent 44%),
    radial-gradient(ellipse at 76% 18%, rgba(148, 116, 255, 0.14), transparent 42%),
    radial-gradient(ellipse at 48% 92%, rgba(31, 136, 168, 0.12), transparent 44%),
    radial-gradient(ellipse at 52% 50%, rgba(255, 255, 255, 0.5), transparent 58%);
  opacity: 0.8;
}

:root[data-theme="light"] .demo-link::after {
  box-shadow:
    0 0 76px rgba(47, 125, 243, 0.12),
    0 0 118px rgba(31, 136, 168, 0.08),
    0 28px 86px rgba(27, 58, 94, 0.18);
}

.demo-link:focus-visible {
  border-radius: 22px;
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.screenshot-frame {
  display: grid;
  position: relative;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 7.6;
  border-color: rgba(214, 230, 255, 0.18);
  background:
    radial-gradient(circle at 15% 0%, rgba(86, 195, 255, 0.1), transparent 18rem),
    radial-gradient(circle at 85% 0%, rgba(148, 116, 255, 0.11), transparent 20rem),
    linear-gradient(140deg, rgba(12, 21, 38, 0.82), rgba(5, 9, 18, 0.8));
  padding: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 80px rgba(0, 0, 0, 0.28),
    inset 0 0 30px rgba(255, 255, 255, 0.03);
}

.screenshot-frame::before {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 24%, transparent 72%, rgba(86, 195, 255, 0.16));
  content: "";
  opacity: 0.48;
  pointer-events: none;
}

.asset-frame {
  aspect-ratio: 16 / 9.4;
}

.core-overview-frame {
  aspect-ratio: 3 / 2;
  padding: 10px;
}

.core-overview-frame .product-screenshot {
  object-fit: contain;
  object-position: top left;
}

:root[data-theme="light"] .screenshot-frame {
  border-color: rgba(47, 125, 243, 0.14);
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 125, 243, 0.08), transparent 18rem),
    radial-gradient(circle at 85% 0%, rgba(148, 116, 255, 0.08), transparent 20rem),
    linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(238, 246, 255, 0.8));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 22px 64px rgba(27, 58, 94, 0.14),
    inset 0 0 30px rgba(255, 255, 255, 0.18);
}

.product-screenshot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 15px;
  object-fit: cover;
  object-position: top center;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    0 0 1px rgba(255, 255, 255, 0.18);
}

.strategy-card-demo {
  width: min(78%, 430px);
  margin: 54px auto 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(74, 145, 255, 0.26), rgba(23, 36, 58, 0.86));
  padding: 26px;
  animation: liftCard 4s ease-in-out infinite;
}

.strategy-card-demo strong,
.strategy-card-demo p {
  display: block;
  margin: 0;
}

.strategy-card-demo strong {
  margin-bottom: 18px;
  font-size: 24px;
}

.strategy-card-demo p {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
}

.demo-log {
  display: grid;
  width: min(86%, 520px);
  gap: 8px;
  margin: 0 auto;
}

.demo-log span {
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.05);
  padding: 11px 14px;
  color: var(--muted);
}

.market-table {
  padding: 26px;
}

.market-table div {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 0.8fr;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  animation: pulseRow 3.8s ease-in-out infinite;
}

.market-table strong {
  color: var(--green);
}

.asset-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 16px;
  height: 260px;
  margin: 34px;
  border-bottom: 1px solid var(--line);
}

.asset-chart i {
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, var(--green), var(--blue));
  animation: chartPulse 4s ease-in-out infinite;
}

@keyframes slowRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.asset-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 34px;
}

.asset-metrics b {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.doc-page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 86px;
}

.api-page {
  width: min(1320px, calc(100% - 32px));
}

.doc-hero {
  max-width: 780px;
  margin-bottom: 34px;
}

.doc-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
}

.doc-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.doc-hero a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.doc-hero a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-video-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(74, 145, 255, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.045);
  padding: 20px 22px;
}

.install-video-panel.with-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.install-video-panel span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.install-video-panel h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.install-video-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.install-video-media {
  justify-self: stretch;
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050a14;
  object-fit: contain;
}

:root[data-theme="light"] .install-video-panel {
  background:
    radial-gradient(circle at 8% 0%, rgba(47, 118, 232, 0.15), transparent 18rem),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 44px rgba(27, 58, 94, 0.08);
}

:root[data-theme="light"] .install-video-media {
  background: #eef4ff;
}

.doc-grid {
  display: grid;
  gap: 16px;
}

.api-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.api-toc {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .api-toc {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 44px rgba(27, 58, 94, 0.08);
}

.api-toc p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.api-toc a {
  overflow: hidden;
  border-radius: 12px;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-toc a:hover,
.api-toc a:focus-visible {
  background: rgba(74, 145, 255, 0.1);
  color: var(--ink);
}

.api-toc a.active {
  background:
    linear-gradient(90deg, rgba(74, 145, 255, 0.2), rgba(120, 214, 238, 0.08)),
    rgba(74, 145, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--blue);
  color: var(--ink);
}

:root[data-theme="light"] .api-toc a.active {
  background:
    linear-gradient(90deg, rgba(47, 118, 232, 0.14), rgba(31, 136, 168, 0.06)),
    rgba(255, 255, 255, 0.68);
}

.api-content {
  min-width: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

:root[data-theme="light"] .api-content {
  background: rgba(255, 255, 255, 0.54);
}

.api-section {
  scroll-margin-top: 130px;
}

.api-content .doc-card,
.api-content .intro-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.api-content .api-section + .api-section,
.api-content .doc-grid {
  border-top: 1px solid var(--line);
}

.api-content .doc-grid {
  gap: 0;
}

.api-content .doc-grid .api-section + .api-section {
  border-top: 1px solid var(--line);
}

.doc-card,
.intro-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 26px;
}

.doc-card h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.intro-card h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.doc-card ul,
.intro-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.doc-card a,
.intro-card a {
  color: var(--blue);
  text-decoration: none;
}

.doc-card a:hover,
.intro-card a:hover {
  text-decoration: underline;
}

.doc-card code,
.intro-card code {
  border: 1px solid rgba(154, 183, 220, 0.2);
  border-radius: 8px;
  background: rgba(74, 145, 255, 0.08);
  padding: 2px 6px;
  color: var(--ink);
  font-size: 0.92em;
  word-break: break-all;
}

.install-cmd-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.install-copy-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  vertical-align: middle;
}

.install-copy-btn:hover {
  border-color: rgba(74, 145, 255, 0.48);
  color: var(--blue);
}

.doc-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 14px;
  margin-top: 22px;
}

.api-content .doc-images {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.doc-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .doc-image {
  background: rgba(255, 255, 255, 0.72);
}

.doc-image-zoom {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: zoom-in;
  padding: 0;
}

.doc-image-zoom img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top center;
}

.doc-image-zoom span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(214, 223, 239, 0.24);
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.72);
  color: #f6f9ff;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 9px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.doc-image-zoom:hover span,
.doc-image-zoom:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.doc-image figcaption {
  margin: 0;
  padding: 12px 14px 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.78);
  backdrop-filter: blur(16px);
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1280px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(214, 223, 239, 0.22);
  border-radius: 18px;
  background: #07101d;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.55);
}

.image-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(214, 223, 239, 0.16);
  padding: 12px 14px;
}

.image-lightbox-toolbar figcaption {
  min-width: 0;
  color: #dce7f8;
  font-size: 14px;
  line-height: 1.45;
}

.image-lightbox-toolbar div {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.image-lightbox-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(214, 223, 239, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #f6f9ff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 10px;
}

.image-lightbox-toolbar button {
  cursor: pointer;
}

.image-lightbox-toolbar svg {
  width: 15px;
  height: 15px;
}

.image-lightbox-panel > img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 62px);
  margin: 0 auto;
  object-fit: contain;
  overflow: auto;
}

.media-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  margin-top: 22px;
  border: 1px dashed rgba(154, 183, 220, 0.32);
  border-radius: 14px;
  color: #72839c;
  font-weight: 800;
}

.doc-split,
.faq-flow {
  display: grid;
  gap: 18px;
}

.doc-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-flow {
  grid-template-columns: 1fr;
}

.faq-layout {
  grid-template-columns: 270px minmax(0, 1fr);
}

.faq-toc a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-split > div,
.faq-group {
  display: grid;
  align-content: start;
  gap: 12px;
}

.doc-split details,
.faq-flow details {
  scroll-margin-top: 130px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.faq-flow details.targeted,
.faq-flow details:target {
  border-color: rgba(74, 145, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(74, 145, 255, 0.12), 0 18px 48px rgba(47, 125, 243, 0.14);
}

.doc-split summary,
.faq-flow summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 900;
}

.faq-flow summary span {
  min-width: 0;
}

.faq-anchor {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.faq-anchor:hover {
  border-color: rgba(74, 145, 255, 0.48);
  color: var(--blue);
}

.faq-anchor svg {
  width: 16px;
  height: 16px;
}

.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 200;
  border: 1px solid rgba(86, 213, 138, 0.45);
  border-radius: 999px;
  background: rgba(7, 14, 26, 0.92);
  box-shadow:
    0 0 0 1px rgba(74, 145, 255, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.01em;
  padding: 12px 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

:root[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(22, 134, 92, 0.35);
  box-shadow:
    0 0 0 1px rgba(47, 125, 243, 0.1),
    0 12px 40px rgba(27, 58, 94, 0.16);
}

.doc-split p,
.faq-flow p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .showcase,
  .api-layout,
  .contact-panel,
  .suite-item,
  .setup-layout,
  .faq-section,
  .safety-strip,
  .education-section {
    grid-template-columns: 1fr;
  }


  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .mode-carousel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid,
  .step-grid,
  .resource-grid,
  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-toc {
    position: static;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 10px;
  }

  .api-toc p {
    display: none;
  }

  .api-toc a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .section-float-nav {
    display: none;
  }
}

@media (max-width: 1180px) {
  .api-page .api-layout {
    grid-template-columns: 1fr;
  }

  .api-page .api-toc {
    position: static;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 10px;
  }

  .api-page .api-toc p {
    display: none;
  }

  .api-page .api-toc a {
    flex: 0 0 auto;
    max-width: none;
    white-space: nowrap;
  }

  .api-page .api-content .doc-images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .product-intro,
  .showcase-list,
  .doc-page,
  .stats-strip,
  .section,
  .suite-section,
  .education-section,
  .workflow-band,
  .concepts-band,
  .safety-strip,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand small {
    display: none;
  }

  .showcase {
    min-height: auto;
    padding: 20px;
    border-radius: 20px;
  }

  .install-video-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-intro {
    padding-top: 24px;
  }

  .mode-carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .showcase-copy h2 {
    font-size: clamp(26px, 7.8vw, 36px);
  }

  .showcase-heading {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .showcase-copy h2 {
    min-width: 0;
  }

  .showcase-links {
    justify-content: flex-start;
    margin-top: 0;
  }

  .section-float-nav {
    bottom: 14px;
    left: 50%;
    right: auto;
    top: auto;
    grid-auto-flow: column;
    transform: translateX(-50%);
  }

  .showcase-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-frame,
  .demo-visual {
    min-height: 340px;
  }

  .screenshot-demo,
  .screenshot-frame {
    min-height: 0;
  }

  .screenshot-frame {
    aspect-ratio: 1.45;
    padding: 7px;
  }

  .asset-frame {
    aspect-ratio: 1.5;
  }

  .core-overview-frame {
    aspect-ratio: 1.22;
  }

  .doc-split {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 18px;
  }

  .hero {
    gap: 34px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(36px, 10.5vw, 46px);
    line-height: 1.06;
  }

  .hero-actions,
  .footer-top {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .suite-item {
    min-height: auto;
    padding: 18px;
  }

  .suite-visual {
    min-height: 310px;
    padding: 16px;
  }

  .mockup-body,
  .stats-strip,
  .feature-grid,
  .step-grid,
  .resource-grid,
  .contact-links,
  .mode-carousel,
  .mode-grid,
  .exchange-list,
  .concept-grid,
  .safety-strip div {
    grid-template-columns: 1fr;
  }

  .product-mockup {
    border-radius: 14px;
  }

  .bars {
    height: 170px;
  }

  .section,
  .suite-section,
  .education-section,
  .workflow-band,
  .concepts-band,
  .safety-strip {
    padding: 56px 0;
  }

  .feature-card,
  .step-card,
  .concept-grid article {
    min-height: auto;
  }
}
