:root {
  --bg: #050507;
  --bg-2: #090910;
  --ink: #f7f1e8;
  --ink-soft: rgba(247, 241, 232, 0.72);
  --ink-faint: rgba(247, 241, 232, 0.46);
  --line: rgba(255, 255, 255, 0.095);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(15, 15, 22, 0.72);
  --surface-2: rgba(255, 255, 255, 0.045);
  --accent: #9a7cff;
  --gold: #d6b476;
  --green: #8cff62;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
  --glass:
    linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.018) 58%),
    rgba(11, 12, 17, 0.78);
  --title-gradient: linear-gradient(180deg, #fff8eb 0%, #e8dfd0 52%, #9d958c 100%);
  --title-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.48),
    0 0 26px rgba(154, 124, 255, 0.11);
  --font-body: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-title: "Alibaba PuHuiTi", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-latin: "Inter", "SF Pro Display", "Segoe UI", Arial, system-ui, sans-serif;
  --font-number: "DIN Alternate", "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(83, 63, 156, 0.2), transparent 32%),
    linear-gradient(245deg, rgba(68, 93, 55, 0.16), transparent 34%),
    linear-gradient(180deg, #060608 0%, #090910 45%, #040405 100%);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 92px 100%, 100% 82px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
  opacity: 0.72;
}

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.032), transparent 24%, rgba(255, 255, 255, 0.012));
  mix-blend-mode: screen;
}

.ai-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-inner,
.footer-inner,
.main-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
}

.header-inner {
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.status-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(140, 255, 98, 0.1), 0 0 18px rgba(140, 255, 98, 0.34);
}

.brand-name {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-os {
  color: var(--ink-faint);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.desktop-nav .nav-button,
.mobile-nav .nav-button {
  position: relative;
  min-height: 68px;
  color: var(--ink-faint);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.desktop-nav .nav-button:hover,
.desktop-nav .nav-button.active,
.mobile-nav .nav-button:hover,
.mobile-nav .nav-button.active {
  color: var(--ink);
}

.desktop-nav .nav-button::after,
.mobile-nav .nav-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #f0d08b);
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.desktop-nav .nav-button.active::after,
.mobile-nav .nav-button.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.socials a,
.article-item b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.socials a:hover,
.article-item b:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 124, 255, 0.42);
  background: rgba(154, 124, 255, 0.09);
}

.mobile-nav {
  display: none;
}

.main-shell {
  flex: 1;
  width: 100%;
  padding: 56px 0 72px;
}

.main-inner {
  padding: 0 20px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.home-frame {
  min-height: calc(100vh - 13rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.os-panel,
.feature-grid,
.plan-card,
.process-panel,
.tool-group,
.exchange-item {
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075), var(--shadow);
}

.hero-system {
  min-height: 540px;
  overflow: hidden;
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.hero-cell {
  min-width: 0;
}

.hero-copy {
  padding: 54px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin-bottom: 24px;
  color: #b9a1ff;
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-head h1,
.module-card span,
.feature-grid h3,
.plan-card h3,
.process-panel h2,
.process-panel h3,
.tool-group h2,
.tool-item strong,
.exchange-copy strong,
.article-item h3 {
  font-family: var(--font-title);
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--title-shadow);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 550;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-outline,
.plan-card a {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-outline:hover,
.plan-card a:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 180, 118, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(154, 124, 255, 0.055)),
    rgba(255, 255, 255, 0.03);
}

.btn-icon {
  font-size: 15px;
}

.arrow {
  color: var(--gold);
}

.stats {
  margin-top: 54px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 34px 42px;
}

.stats strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: 0;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 850;
}

.signal-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(154, 124, 255, 0.13), transparent 58%),
    linear-gradient(315deg, rgba(214, 180, 118, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.012);
}

.profile-card {
  width: min(100%, 320px);
  text-align: center;
}

.avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(145deg, #a087ff 0%, #d4ab65 46%, #244f56 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 46px;
  font-weight: 950;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.profile-card strong {
  display: block;
  margin-top: 24px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 950;
}

.profile-card > span,
.profile-card > p {
  display: block;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.service-pill {
  width: fit-content;
  margin: 22px auto 0;
  padding: 9px 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  font-size: 10px;
}

.service-pill i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(140, 255, 98, 0.11);
}

.module-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 70px rgba(0, 0, 0, 0.28);
}

.module-card {
  min-height: 104px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-content: center;
  align-items: center;
  gap: 7px 14px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(14, 15, 21, 0.8);
  text-align: left;
  transition: background 0.18s ease, transform 0.18s ease;
}

.module-card:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(145deg, rgba(154, 124, 255, 0.12), rgba(255, 255, 255, 0.022)),
    rgba(16, 17, 24, 0.92);
}

.module-card span {
  font-size: 15px;
  font-weight: 950;
}

.module-card i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.048);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-style: normal;
  font-size: 14px;
  grid-row: 1 / span 2;
  grid-column: 2;
}

.module-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 520;
}

.page-view {
  min-height: calc(100vh - 12rem);
}

.page-head {
  max-width: 820px;
  margin: 0 0 38px;
}

.page-head span,
.split span,
.article-item span {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #e2d7ff;
  background: rgba(154, 124, 255, 0.12);
  border: 1px solid rgba(154, 124, 255, 0.22);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.page-head h1 {
  margin: 18px 0 16px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: 0;
}

.page-head p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 520;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 24px;
}

.feature-grid article {
  min-height: 118px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-grid article:nth-child(2n) {
  border-right: 0;
}

.feature-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.feature-grid h3,
.plan-card h3,
.process-panel h3,
.tool-group h2,
.exchange-copy strong {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 950;
}

.feature-grid p,
.process-panel p,
.tool-item p,
.exchange-copy em,
.article-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-style: normal;
  font-size: 13px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.plan-card,
.process-panel {
  padding: 28px;
  border-radius: 24px;
}


.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.price {
  margin: 22px 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.price strong {
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 38px;
  line-height: 0.9;
}

.price em {
  color: var(--ink-faint);
  font-style: normal;
}

.plan-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan-card li {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 13px;
  font-weight: 520;
}

.plan-card li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.plan-card a {
  margin-top: 22px;
  min-height: 40px;
  padding: 0 18px;
}

.process-panel > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.process-panel strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-number);
  font-size: 18px;
  margin-bottom: 10px;
}

.exchange-list {
  display: grid;
  gap: 16px;
}


.exchange-item {
  min-height: 94px;
  padding: 18px 22px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.exchange-item:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 180, 118, 0.34);
}

.exchange-logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.exchange-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exchange-copy strong,
.exchange-copy em {
  display: block;
}

.exchange-copy small {
  margin-left: 8px;
  color: var(--ink-faint);
  font-size: 12px;
}

.code-box {
  min-height: 34px;
  min-width: 128px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-faint);
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.code-box:hover {
  border-color: rgba(214, 180, 118, 0.34);
  background: rgba(214, 180, 118, 0.09);
}

.code-box b {
  color: #e2d7ff;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.exchange-item i {
  color: var(--gold);
  font-style: normal;
  font-size: 18px;
  justify-self: end;
}

.promo-item {
  background:
    radial-gradient(circle at 0% 50%, rgba(154, 124, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018));
}

.promo-logo {
  color: #e2d7ff;
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 950;
}

.promo-item .exchange-copy em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.promo-fold {
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 50%, rgba(214, 180, 118, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016));
  overflow: hidden;
}

.promo-fold summary {
  min-height: 78px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.promo-fold summary::-webkit-details-marker {
  display: none;
}

.promo-fold summary span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.promo-fold summary i {
  color: var(--gold);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.promo-fold[open] summary i {
  color: var(--ink-faint);
}

.promo-fold[open] summary i::before {
  content: "收起";
}

.promo-fold[open] summary i {
  font-size: 0;
}

.promo-fold[open] summary i::before {
  font-size: 13px;
}

.promo-fold-body {
  padding: 0 22px 22px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.promo-fold-body p {
  margin: 0 0 14px;
}

.promo-fold-body code {
  display: block;
  padding: 14px;
  border-radius: 14px;
  color: #e2d7ff;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-number);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.copy-promo-link {
  margin-top: 14px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  color: #14100a;
  background: linear-gradient(135deg, #f1d795, #d6b476);
  font-size: 13px;
  font-weight: 950;
}

.article-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.article-item {
  min-height: 176px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.article-item > div,
.article-item footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.article-item h3 {
  margin: 18px 0 12px;
  font-size: 20px;
  font-weight: 950;
}

.article-item time,
.article-item small {
  color: var(--ink-faint);
}

.tool-workbench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(154, 124, 255, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.015)),
    rgba(9, 10, 15, 0.84);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 24px 80px rgba(0, 0, 0, 0.32);
}

.tool-rail {
  position: sticky;
  top: 92px;
  align-self: stretch;
  min-height: 100%;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
  overflow: auto;
  scrollbar-width: thin;
}

.tool-tab {
  min-height: 58px;
  padding: 0 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.tool-tab span,
.tool-tab small {
  display: block;
}

.tool-tab span {
  font-size: 14px;
  font-weight: 950;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 5px 14px rgba(0, 0, 0, 0.42),
    0 0 14px rgba(154, 124, 255, 0.08);
}

.tool-tab small {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.tool-tab.active,
.tool-tab:hover {
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(154, 124, 255, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.tool-stage {
  min-height: 0;
  padding: 24px;
}

.tool-panel-section {
  display: none;
}

.tool-panel-section.active {
  display: block;
}

.tool-panel-head {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.tool-panel-head em {
  display: block;
  margin-bottom: 6px;
  color: #b9a1ff;
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.tool-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.tool-panel-head b {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #e2d7ff;
  background: rgba(154, 124, 255, 0.12);
  border: 1px solid rgba(154, 124, 255, 0.22);
  font-size: 10px;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-card {
  min-height: 102px;
  padding: 15px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 180, 118, 0.34);
  background:
    linear-gradient(145deg, rgba(154, 124, 255, 0.11), rgba(255, 255, 255, 0.02)),
    rgba(10, 11, 17, 0.9);
}

.tool-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 20px;
}

.tool-card-copy strong {
  display: block;
  margin: 1px 0 6px;
  font-size: 13px;
  font-weight: 950;
}

.tool-card-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.tool-card i {
  grid-column: 2;
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  font-size: 11px;
  align-self: end;
}

.empty {
  padding: 56px 20px;
  color: var(--ink-faint);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.76);
  backdrop-filter: blur(18px);
}

.footer-inner {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-faint);
  font-size: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

.ai-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(18, 19, 27, 0.9);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.ai-float b {
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(154, 124, 255, 0.17);
}

.chat-popover {
  position: fixed;
  right: 24px;
  bottom: 86px;
  z-index: 81;
  width: min(320px, calc(100% - 32px));
  padding: 18px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(17, 18, 26, 0.94);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.chat-popover.hidden {
  display: none;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-head button {
  color: var(--ink);
  background: transparent;
  font-size: 20px;
}

.chat-popover p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.chat-popover a {
  color: var(--ink);
}

@media (max-width: 980px) {
  .desktop-nav {
    gap: 24px;
  }

  .main-shell {
    padding: 40px 0 56px;
  }

  .hero-system {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 42px 34px;
  }

  .signal-stage {
    display: none;
  }

  .module-grid,
  .feature-grid,
  .plan-grid,
  .process-panel > div {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .feature-grid article:nth-child(2n),
  .feature-grid article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }

  .exchange-item {
    grid-template-columns: 56px minmax(0, 1fr) 24px;
  }

  .code-box {
    grid-column: 1 / -1;
  }

  .tool-workbench {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .tool-rail {
    position: static;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .tool-rail::-webkit-scrollbar {
    display: none;
  }

  .tool-tab {
    min-width: 154px;
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .header-inner {
    min-height: 54px;
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    padding: 0 16px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav .nav-button {
    min-height: 46px;
    font-size: 11px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }

  .brand-os {
    display: none;
  }

  .socials {
    gap: 8px;
  }

  .socials a {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .main-shell {
    padding: 28px 0 52px;
    overflow: hidden;
  }

  .main-inner {
    padding: 0 16px;
  }

  .home-frame {
    min-height: 0;
  }

  .hero-system {
    border-radius: 24px;
  }

  .hero-copy {
    width: calc(100vw - 32px);
    max-width: 100%;
    padding: 28px 18px 30px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
    letter-spacing: 0.12em;
    line-height: 1.5;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 10.6vw, 42px);
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.68;
  }

  .hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .btn-outline {
    min-height: 38px;
    min-width: 0;
    width: calc((100% - 10px) / 2);
    padding: 0 8px;
    font-size: 10px;
  }

  .stats {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stats strong {
    font-size: clamp(20px, 6vw, 24px);
  }

  .stats span {
    font-size: 8px;
    line-height: 1.35;
  }

  .module-grid {
    margin-top: 26px;
    border-radius: 22px;
  }

  .module-card {
    min-height: 84px;
    padding: 18px 20px;
  }

  .module-card span {
    font-size: 13px;
  }

  .module-card p {
    font-size: 11px;
  }

  .page-head {
    margin-bottom: 26px;
  }

  .page-head h1 {
    font-size: clamp(26px, 8.6vw, 34px);
  }

  .page-head p {
    font-size: 12px;
  }

  .feature-grid article,
  .plan-card,
  .process-panel {
    padding: 20px;
  }

  .tool-stage {
    min-height: 0;
    padding: 14px;
  }

  .tool-workbench {
    border-radius: 20px;
    overflow: hidden;
  }

  .tool-rail {
    padding: 10px;
    gap: 8px;
    scroll-snap-type: x proximity;
  }

  .tool-tab {
    min-width: 118px;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 14px;
    scroll-snap-align: start;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }

  .tool-tab span {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .tool-tab small {
    font-size: 9px;
    line-height: 1;
  }

  .tool-panel-head h2 {
    font-size: 18px;
  }

  .tool-panel-head {
    margin-bottom: 14px;
    padding-bottom: 14px;
    align-items: center;
  }

  .tool-panel-head em {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .tool-panel-head b {
    min-height: 28px;
    padding: 0 10px;
  }

  .tool-card-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 96px;
    padding: 14px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .tool-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }

  .tool-card-copy strong {
    font-size: 13px;
  }

  .tool-card-copy p {
    font-size: 11px;
    line-height: 1.55;
  }

  .tool-card i {
    font-size: 11px;
  }

  .exchange-item {
    padding: 16px;
    gap: 12px;
    grid-template-columns: 46px minmax(0, 1fr) 20px;
  }

  .exchange-logo {
    width: 46px;
    height: 46px;
  }

  .code-box {
    grid-column: 2 / -1;
    justify-content: flex-start;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    padding: 0 12px;
  }

  .footer-inner {
    padding: 24px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-float {
    right: 10px;
    bottom: 10px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 10px;
    opacity: 0.92;
  }

  .ai-float span {
    display: none;
  }

  .ai-float b {
    min-width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .chat-popover {
    right: 14px;
    bottom: 76px;
  }
}

@media (max-width: 390px) {
  .header-inner,
  .mobile-nav,
  .main-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy {
    width: calc(100vw - 28px);
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 10vw, 36px);
  }
}

@media (max-width: 760px) {
  #view-tools {
    overflow-x: hidden;
  }

  #view-tools .tool-page-head {
    margin-bottom: 20px;
  }

  #view-tools .tool-page-head span {
    min-height: 30px;
    padding: 0 12px;
    font-size: 10px;
  }

  #view-tools .tool-page-head h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  #view-tools .tool-page-head p {
    font-size: 14px;
    line-height: 1.58;
  }

  #view-tools .tool-workbench {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    overflow: hidden;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
      rgba(9, 10, 15, 0.86);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 18px 56px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px) saturate(120%);
  }

  #view-tools .tool-rail {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 8px 6px;
    overflow: visible;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.018);
  }

  #view-tools .tool-rail::-webkit-scrollbar {
    display: none;
  }

  #view-tools .tool-tab {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 38px;
    padding: 0 7px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
  }

  #view-tools .tool-tab span {
    width: auto;
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #view-tools .tool-tab small {
    display: none;
  }

  #view-tools .tool-tab.active {
    border-color: rgba(214, 180, 118, 0.42);
    background:
      linear-gradient(145deg, rgba(154, 124, 255, 0.2), rgba(214, 180, 118, 0.08)),
      rgba(255, 255, 255, 0.055);
  }

  #view-tools .tool-stage {
    width: 100%;
    max-width: 100%;
    padding: 10px;
  }

  #view-tools .tool-panel-section.active {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #view-tools .tool-panel-head {
    margin-bottom: 12px;
    padding-bottom: 12px;
    align-items: center;
    gap: 10px;
  }

  #view-tools .tool-panel-head h2 {
    font-size: 20px;
    line-height: 1.15;
  }

  #view-tools .tool-panel-head b {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  #view-tools .tool-card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #view-tools .tool-card {
    min-height: 82px;
    padding: 11px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    border-radius: 12px;
  }

  #view-tools .tool-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 16px;
  }

  #view-tools .tool-card-copy strong {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.25;
  }

  #view-tools .tool-card-copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  #view-tools .tool-card i {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .mobile-nav {
    gap: 22px;
  }

  .mobile-nav .nav-button {
    min-height: 48px;
    font-size: 13px;
    font-weight: 850;
  }

  .page-head span,
  .eyebrow {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.08em;
  }

  .page-head h1 {
    font-size: clamp(30px, 9vw, 34px);
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.12),
      0 5px 14px rgba(0, 0, 0, 0.34);
  }

  .page-head p {
    max-width: 34em;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 42px);
    line-height: 1.05;
    letter-spacing: 0;
  }

  .hero-copy p,
  .module-card p,
  .exchange-copy em,
  .article-item p,
  .tool-card-copy p {
    font-size: 14px;
    line-height: 1.58;
  }

  .module-card span,
  .exchange-copy strong,
  .article-item h3,
  .tool-card-copy strong {
    font-size: 16px;
    line-height: 1.25;
  }

  #view-tools .tool-tab span {
    font-size: 12px;
    font-weight: 850;
    text-shadow: none;
  }

  #view-tools .tool-panel-head em {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  #view-tools .tool-panel-head h2 {
    font-size: 20px;
    line-height: 1.15;
  }

  #view-tools .tool-card-copy strong {
    font-size: 14px;
  }

  #view-tools .tool-card i {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .main-shell {
    padding-top: 22px;
  }

  .hero-system {
    border-radius: 20px;
  }

  .hero-copy {
    width: calc(100vw - 32px);
    padding: 24px 18px 26px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 14px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.04;
  }

  .hero-copy p {
    margin-top: 16px;
    max-width: 26em;
    font-size: 13px;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 8px;
  }

  .btn-outline {
    min-height: 36px;
    padding: 0 10px;
    font-size: 10px;
  }

  .stats {
    margin-top: 26px;
    gap: 8px;
  }

  .stats strong {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1;
  }

  .stats span {
    margin-top: 6px;
    font-size: 9px;
  }

  .module-grid {
    margin-top: 22px;
    border-radius: 18px;
  }

  .module-card {
    min-height: 72px;
    padding: 14px 16px;
  }

  .module-card span {
    font-size: 14px;
  }

  .module-card p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  .page-head {
    margin-bottom: 22px;
  }

  .page-head h1 {
    font-size: clamp(28px, 8.4vw, 34px);
    line-height: 1.08;
  }

  .page-head p {
    font-size: 13px;
    line-height: 1.6;
  }
}


@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .ai-shell,
  .main-shell,
  .main-inner,
  .home-frame,
  .view {
    max-width: 100%;
    overflow-x: hidden;
  }

  .mobile-nav {
    width: 100%;
    max-width: 100%;
    gap: 18px;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: auto;
  }

  .mobile-nav .nav-button {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0;
    font-size: 12px;
  }

  .hero-system,
  .module-grid,
  .tool-workbench,
  .exchange-list,
  .article-list {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn-outline {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-body: 13px;
    --mobile-note: 12px;
    --mobile-title: 30px;
    --mobile-card-title: 14px;
  }

  body {
    font-size: var(--mobile-body);
    line-height: 1.5;
  }

  .header-inner {
    min-height: 50px;
    padding: 0 14px;
  }

  .brand-name {
    font-size: 13px;
  }

  .socials a {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .mobile-nav {
    min-height: 44px;
    padding: 0 14px;
    gap: 22px;
  }

  .mobile-nav .nav-button {
    min-height: 44px;
    font-size: 12px;
    font-weight: 800;
  }

  .main-shell {
    padding: 20px 0 46px;
  }

  .main-inner {
    padding: 0 14px;
  }

  .hero-system {
    border-radius: 18px;
  }

  .hero-copy {
    padding: 22px 18px 24px;
  }

  .hero-copy .eyebrow,
  .page-head span {
    min-height: 26px;
    padding: 0 10px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .hero-copy h1,
  .page-head h1 {
    font-size: var(--mobile-title);
    line-height: 1.06;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.1),
      0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .hero-copy p,
  .page-head p {
    margin-top: 14px;
    font-size: var(--mobile-body);
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 20px;
    gap: 8px;
  }

  .btn-outline {
    min-height: 34px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 10px;
  }

  .stats {
    margin-top: 24px;
    gap: 8px;
  }

  .stats strong {
    font-size: 26px;
    line-height: 1;
  }

  .stats span {
    margin-top: 5px;
    font-size: 9px;
  }

  .module-grid {
    margin-top: 18px;
    border-radius: 16px;
  }

  .module-card {
    min-height: 66px;
    padding: 12px 14px;
    gap: 4px 10px;
  }

  .module-card span,
  .exchange-copy strong,
  .article-item h3 {
    font-size: var(--mobile-card-title);
    line-height: 1.22;
  }

  .module-card p,
  .exchange-copy em,
  .article-item p {
    font-size: var(--mobile-note);
    line-height: 1.45;
  }

  .module-card i {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .page-head {
    margin-bottom: 20px;
  }

  .exchange-item,
  .article-item,
  .plan-card,
  .process-panel,
  .feature-grid article {
    border-radius: 16px;
    padding: 14px;
  }

  .exchange-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .exchange-item {
    min-height: 74px;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
  }

  .code-box {
    min-height: 28px;
    font-size: 10px;
  }

  #view-tools .tool-page-head h1 {
    font-size: var(--mobile-title);
  }

  #view-tools .tool-workbench {
    grid-template-columns: 88px minmax(0, 1fr);
    border-radius: 16px;
  }

  #view-tools .tool-rail {
    padding: 8px 5px;
    gap: 5px;
  }

  #view-tools .tool-tab {
    min-height: 36px;
    padding: 0 6px;
    border-radius: 9px;
  }

  #view-tools .tool-tab span {
    font-size: 11px;
    font-weight: 800;
  }

  #view-tools .tool-stage {
    padding: 10px;
  }

  #view-tools .tool-panel-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  #view-tools .tool-panel-head em {
    font-size: 9px;
  }

  #view-tools .tool-panel-head h2 {
    font-size: 18px;
  }

  #view-tools .tool-card-grid {
    gap: 8px;
  }

  #view-tools .tool-card {
    min-height: 76px;
    padding: 10px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  #view-tools .tool-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
  }

  #view-tools .tool-card-copy strong {
    margin-bottom: 3px;
    font-size: 13px;
  }

  #view-tools .tool-card-copy p {
    font-size: 11px;
    line-height: 1.38;
  }

  #view-tools .tool-card i {
    font-size: 10px;
  }
}


/* Final mobile home proportion pass: compact phone card ratio */
@media (max-width: 760px) {
  .home-frame {
    gap: 0;
  }

  .hero-system {
    min-height: 0 !important;
    border-radius: 18px !important;
  }

  .hero-copy {
    width: 100% !important;
    padding: 18px 16px 20px !important;
    min-height: 0 !important;
  }

  .hero-copy .eyebrow {
    margin-bottom: 12px !important;
    min-height: 22px !important;
    padding: 0 9px !important;
    font-size: 8px !important;
    letter-spacing: 0.06em !important;
  }

  .hero-copy h1 {
    font-size: 28px !important;
    line-height: 1 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 3px 8px rgba(0,0,0,.3) !important;
  }

  .hero-copy p {
    margin-top: 12px !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.52 !important;
  }

  .hero-actions {
    margin-top: 16px !important;
    gap: 8px !important;
  }

  .hero-actions .btn-outline {
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .stats {
    margin-top: 20px !important;
    gap: 6px !important;
  }

  .stats strong {
    font-size: 23px !important;
    line-height: 1 !important;
  }

  .stats span {
    margin-top: 4px !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
  }

  .module-grid {
    margin-top: 18px !important;
  }
}


/* Mobile coordinated sizing based on common UI scales:
   title 26px, directory 13px, intro 12px, compact cards. */
@media (max-width: 760px) {
  .main-inner {
    max-width: 430px !important;
    margin: 0 auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .mobile-nav .nav-button,
  .module-card span,
  #view-tools .tool-tab span {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .hero-copy h1,
  .page-head h1 {
    font-size: 26px !important;
    line-height: 1.08 !important;
  }

  .hero-copy p,
  .page-head p,
  .module-card p,
  .exchange-copy em,
  #view-tools .tool-card-copy p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .hero-system {
    max-width: 100% !important;
    border-radius: 16px !important;
  }

  .hero-copy {
    padding: 16px 14px 18px !important;
  }

  .hero-copy .eyebrow,
  .page-head span {
    min-height: 22px !important;
    padding: 0 9px !important;
    font-size: 8px !important;
  }

  .hero-actions {
    margin-top: 14px !important;
  }

  .btn-outline {
    min-height: 30px !important;
    font-size: 10px !important;
  }

  .stats {
    margin-top: 16px !important;
  }

  .stats strong {
    font-size: 21px !important;
  }

  .stats span {
    font-size: 8px !important;
  }

  .module-card {
    min-height: 60px !important;
    padding: 10px 12px !important;
  }

  .exchange-item {
    min-height: 66px !important;
    padding: 12px !important;
  }

  #view-tools .tool-workbench {
    grid-template-columns: 84px minmax(0, 1fr) !important;
  }

  #view-tools .tool-tab {
    min-height: 34px !important;
  }

  #view-tools .tool-card {
    min-height: 70px !important;
    padding: 9px !important;
  }

  #view-tools .tool-card-copy strong {
    font-size: 13px !important;
  }
}


/* Final mobile proportional fix: no centered pseudo-desktop canvas. */
@media (max-width: 760px) {
  .main-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  .hero-system,
  .module-grid,
  .exchange-list,
  .article-list,
  #view-tools .tool-workbench {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-system {
    border-radius: 16px !important;
  }

  .hero-copy {
    width: 100% !important;
    padding: 16px 14px 18px !important;
    box-sizing: border-box !important;
  }

  .hero-copy h1,
  .page-head h1 {
    font-size: 26px !important;
    line-height: 1.08 !important;
  }

  .mobile-nav .nav-button,
  .module-card span,
  #view-tools .tool-tab span {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .hero-copy p,
  .page-head p,
  .module-card p,
  .exchange-copy em,
  #view-tools .tool-card-copy p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .hero-actions .btn-outline {
    min-width: 0 !important;
  }
}


/* Mobile toolbox category labels: fit full names better. */
@media (max-width: 760px) {
  #view-tools .tool-workbench {
    grid-template-columns: 104px minmax(0, 1fr) !important;
  }

  #view-tools .tool-rail {
    padding: 8px 6px !important;
  }

  #view-tools .tool-tab {
    min-height: 38px !important;
    padding: 0 7px !important;
  }

  #view-tools .tool-tab span {
    font-size: 10px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: keep-all !important;
  }
}


/* Mobile page titles: down two steps. */
@media (max-width: 760px) {
  .page-head h1,
  #view-tools .tool-page-head h1 {
    font-size: 22px !important;
    line-height: 1.12 !important;
  }
}


/* Desktop nav: one step larger. */
@media (min-width: 761px) {
  .desktop-nav .nav-button {
    font-size: 14px !important;
  }
}
