:root {
  color-scheme: dark;
  --bg: #020402;
  --fg: #f7fbfa;
  --muted: #aeb8b6;
  --green: #54ff39;
  --green-vector: #71f200;
  --green-soft: rgba(84, 255, 57, 0.16);
  --green-line: rgba(84, 255, 57, 0.58);
  --panel: rgba(3, 8, 4, 0.72);
  --display-font: "Orbitron", "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  --page-x: clamp(44px, 4.6vw, 74px);
  --line-glow: 0 0 6px rgba(113, 242, 0, 0.82), 0 0 18px rgba(113, 242, 0, 0.34);
}

@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 72%, rgba(84, 255, 57, 0.1), transparent 14rem),
    radial-gradient(circle at 50% 39%, rgba(255, 255, 255, 0.045), transparent 18rem),
    #000;
  color: var(--fg);
  font-family:
    "Bahnschrift", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

#matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.64;
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 4px,
    linear-gradient(90deg, rgba(84, 255, 57, 0.05), transparent 16%, transparent 84%, rgba(84, 255, 57, 0.05));
  mix-blend-mode: screen;
  opacity: 0.12;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(90deg, rgba(84, 255, 57, 0.035), transparent 11%, transparent 89%, rgba(84, 255, 57, 0.035)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.18) 54%, rgba(0, 0, 0, 0.72) 100%);
}

.theme-panel {
  border: 1px solid rgba(113, 242, 0, 0.34);
  background: rgba(0, 0, 0, 0.46);
  box-shadow: inset 0 0 24px rgba(113, 242, 0, 0.05);
}

.theme-button {
  border: 1px solid rgba(113, 242, 0, 0.62);
  border-radius: 7px;
  color: var(--green-vector);
  font-family: var(--display-font);
  text-transform: uppercase;
}

.subpage {
  display: block;
  min-height: calc(100vh - 116px);
  width: min(1180px, calc(100% - (var(--page-x) * 2)));
  margin: 0 auto;
  padding: clamp(60px, 8vh, 96px) 0 clamp(72px, 11vh, 130px);
}

.subpage-panel {
  width: 100%;
  padding: clamp(28px, 4vw, 52px);
}

.subpage-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.subpage-copy {
  min-width: 0;
}

.subpage-panel .eyebrow {
  margin: 0 0 22px;
  color: var(--green-vector);
  font-family: var(--display-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: var(--line-glow);
}

.subpage-panel h1 {
  display: block;
  max-width: none;
  transform: none;
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
}

.subpage-panel p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #dbe5e2;
  font-family:
    "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI",
    sans-serif;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.signal-board {
  position: relative;
  min-height: 380px;
  border: 1px solid rgba(113, 242, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(113, 242, 0, 0.08), transparent 34%),
    radial-gradient(circle at 72% 28%, rgba(84, 255, 57, 0.18), transparent 10rem),
    rgba(0, 0, 0, 0.42);
  overflow: hidden;
  box-shadow:
    inset 0 0 36px rgba(113, 242, 0, 0.08),
    0 0 28px rgba(0, 0, 0, 0.36);
}

.signal-board::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(113, 242, 0, 0.2);
  content: "";
}

.module-node {
  position: absolute;
  width: clamp(112px, 15vw, 168px);
  padding: 14px 16px;
  border: 1px solid rgba(113, 242, 0, 0.48);
  color: #f6fff3;
  font-family: var(--display-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(2, 6, 2, 0.8);
  box-shadow: 0 0 18px rgba(84, 255, 57, 0.14);
}

.module-node strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 1rem;
}

.node-a { top: 46px; left: 36px; }
.node-b { top: 122px; right: 48px; }
.node-c { right: 110px; bottom: 50px; }
.node-d { bottom: 90px; left: 76px; }

.signal-line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(84, 255, 57, 0.8), transparent);
  box-shadow: 0 0 10px rgba(84, 255, 57, 0.36);
}

.signal-line.line-a { top: 115px; left: 154px; width: 260px; transform: rotate(13deg); }
.signal-line.line-b { top: 204px; left: 218px; width: 248px; transform: rotate(-22deg); }
.signal-line.line-c { right: 188px; bottom: 128px; width: 236px; transform: rotate(12deg); }

.security-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 410px;
}

.shield-core {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(113, 242, 0, 0.34);
  clip-path: polygon(50% 0, 92% 17%, 82% 74%, 50% 100%, 18% 74%, 8% 17%);
  color: var(--green);
  font-family: var(--display-font);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background:
    radial-gradient(circle, rgba(84, 255, 57, 0.14), rgba(0, 0, 0, 0.78) 66%),
    rgba(0, 0, 0, 0.76);
  box-shadow:
    0 0 28px rgba(84, 255, 57, 0.18),
    inset 0 0 34px rgba(84, 255, 57, 0.12);
}

.orbit-ring {
  position: absolute;
  width: min(380px, 86vw);
  aspect-ratio: 1;
  border: 1px dashed rgba(113, 242, 0, 0.28);
  border-radius: 50%;
}

.security-tag {
  position: absolute;
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid rgba(113, 242, 0, 0.42);
  color: #ecfff0;
  font-family: var(--display-font);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.72);
}

.tag-top { top: 12px; }
.tag-right { right: 0; }
.tag-bottom { bottom: 16px; }
.tag-left { left: 0; }

.terminal {
  min-height: 390px;
  padding: 22px;
  border: 1px solid rgba(113, 242, 0, 0.34);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: inset 0 0 30px rgba(113, 242, 0, 0.08);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(84, 255, 57, 0.8);
}

.terminal pre {
  margin: 0;
  overflow: auto;
  color: #d9ffe0;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.8;
}

.terminal .green {
  color: var(--green);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  display: grid;
  align-content: space-between;
  min-height: 360px;
  padding: 24px;
  border: 1px solid rgba(113, 242, 0, 0.26);
  background: rgba(0, 0, 0, 0.5);
}

.price-card.featured {
  border-color: rgba(84, 255, 57, 0.7);
  box-shadow: 0 0 28px rgba(84, 255, 57, 0.14);
}

.price-card h2 {
  margin: 0;
  color: #f8fff5;
  font-family: var(--display-font);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin: 22px 0;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.price-card p {
  margin: 0;
  color: #d7e1dc;
  font-size: 0.92rem;
  line-height: 1.7;
}

.mini-action {
  display: inline-flex;
  justify-content: center;
  margin-top: 26px;
  padding: 12px 14px;
  border: 1px solid rgba(113, 242, 0, 0.48);
  color: var(--green);
  font-family: var(--display-font);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field-line {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.field-line input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(113, 242, 0, 0.42);
  border-radius: 0;
  outline: none;
  color: #f7fff5;
  font: inherit;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.54);
  box-shadow: inset 0 0 16px rgba(113, 242, 0, 0.06);
}

.field-line input:focus {
  border-color: rgba(84, 255, 57, 0.92);
  box-shadow:
    0 0 16px rgba(84, 255, 57, 0.18),
    inset 0 0 18px rgba(84, 255, 57, 0.1);
}

.auth-message {
  min-height: 22px;
  margin: 4px 0 0;
  color: rgba(238, 246, 243, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-message.error {
  color: #ff6f6f;
  text-shadow: 0 0 12px rgba(255, 64, 64, 0.28);
}

.auth-message.success {
  color: var(--green);
  text-shadow: 0 0 12px rgba(84, 255, 57, 0.28);
}

.mini-action:disabled {
  cursor: wait;
  opacity: 0.58;
}

.product-page {
  width: min(1240px, calc(100% - (var(--page-x) * 2)));
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) 0 clamp(70px, 10vh, 120px);
}

.product-hero {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: clamp(34px, 5vw, 58px);
  text-align: center;
}

.product-hero.align-left {
  justify-items: start;
  text-align: left;
}

.product-hero .eyebrow,
.subpage-copy .eyebrow {
  margin: 0;
  color: rgba(244, 255, 244, 0.82);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(84, 255, 57, 0.16);
}

.product-hero h1,
.subpage-copy h1 {
  margin: 0;
  max-width: 860px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.06;
  text-transform: none;
  transform: none;
}

.product-hero p,
.subpage-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(230, 236, 234, 0.72);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 600;
  line-height: 1.8;
}

.gradient-word {
  color: var(--green);
  text-shadow:
    0 0 10px rgba(84, 255, 57, 0.7),
    0 0 28px rgba(84, 255, 57, 0.28);
}

.home-terminal {
  width: min(650px, 100%);
  margin: clamp(28px, 5vh, 58px) auto 0;
  border: 1px solid rgba(113, 242, 0, 0.22);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(3, 8, 12, 0.86);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
}

.terminal-tabs,
.model-toolbar,
.ranking-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(113, 242, 0, 0.14);
  padding: 14px 18px;
  color: rgba(235, 245, 242, 0.46);
  font-family: var(--display-font);
  font-size: 0.72rem;
  font-weight: 800;
}

.terminal-tabs span:first-child,
.ranking-tabs .active {
  color: var(--green);
}

.terminal-status {
  margin-left: auto;
  color: rgba(235, 245, 242, 0.6);
}

.code-block {
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #e8f7f1;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.8;
}

.code-block .green {
  color: #00ffd0;
}

.code-block .yellow {
  color: #ffeb55;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(52px, 7vw, 86px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 34px;
}

.stat-strip article {
  text-align: center;
}

.stat-strip strong {
  display: block;
  color: #fff;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
}

.stat-strip span {
  color: rgba(230, 236, 234, 0.58);
  font-size: 0.92rem;
}

.model-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.filter-panel,
.content-panel,
.data-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(10, 12, 12, 0.58);
  box-shadow: inset 0 0 24px rgba(84, 255, 57, 0.025);
}

.filter-panel {
  padding: 18px;
}

.filter-panel h2,
.content-panel h2,
.data-panel h2 {
  margin: 0;
  font-size: 0.96rem;
}

.filter-group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 18px;
  padding-top: 18px;
}

.filter-group strong {
  display: block;
  margin-bottom: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0 10px;
  color: rgba(238, 246, 243, 0.82);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.035);
}

.search-bar {
  width: min(620px, 100%);
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 16px;
  color: rgba(238, 246, 243, 0.64);
  background: rgba(0, 0, 0, 0.38);
}

.content-panel {
  min-height: 340px;
  padding: 18px;
}

.model-toolbar {
  justify-content: space-between;
  border-bottom: 0;
  padding: 0 0 18px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(238, 246, 243, 0.68);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1rem;
}

.ranking-grid,
.dashboard-grid,
.docs-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ranking-card,
.dashboard-card,
.docs-card,
.about-card {
  min-height: 180px;
  border: 1px solid rgba(113, 242, 0, 0.2);
  border-radius: 8px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.48);
}

.ranking-card strong,
.dashboard-card strong,
.docs-card strong,
.about-card strong {
  display: block;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ranking-card span,
.dashboard-card span,
.docs-card span,
.about-card span {
  display: block;
  margin-top: 16px;
  color: rgba(238, 246, 243, 0.68);
  line-height: 1.7;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.console-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 34px;
}

.console-sidebar,
.console-main,
.console-status,
.metric-strip article {
  border: 1px solid rgba(113, 242, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(113, 242, 0, 0.06), transparent 38%),
    rgba(0, 0, 0, 0.46);
  box-shadow:
    inset 0 0 24px rgba(113, 242, 0, 0.05),
    0 0 26px rgba(0, 0, 0, 0.34);
}

.console-sidebar {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.console-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  color: #dce6e3;
  font-family:
    "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI",
    sans-serif;
  font-size: 0.86rem;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.console-sidebar a::after {
  color: rgba(113, 242, 0, 0.62);
  content: ">";
  font-family: var(--display-font);
  font-size: 0.74rem;
}

.console-sidebar a.active,
.console-sidebar a:hover {
  border-color: rgba(113, 242, 0, 0.5);
  color: #fff;
  background: rgba(84, 255, 57, 0.08);
  box-shadow: inset 0 0 16px rgba(84, 255, 57, 0.08);
}

.console-main {
  min-width: 0;
  padding: 18px;
}

.console-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 18px;
}

.console-status span,
.console-status em,
.metric-strip span,
.metric-strip em {
  color: var(--green-vector);
  font-family: var(--display-font);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-status strong {
  color: #fff;
  font-family: var(--display-font);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

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

.metric-strip article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
}

.metric-strip strong {
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 16px rgba(84, 255, 57, 0.22);
}

.chart-panel {
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  right: 24px;
  bottom: 40px;
  left: 24px;
  height: 130px;
  background:
    linear-gradient(135deg, transparent 10%, rgba(84, 255, 57, 0.58) 10% 12%, transparent 12% 34%, rgba(84, 255, 57, 0.75) 34% 36%, transparent 36% 62%, rgba(84, 255, 57, 0.7) 62% 64%, transparent 64%),
    linear-gradient(rgba(84, 255, 57, 0.08) 1px, transparent 1px) 0 0 / 100% 32px;
}

.feature-grid article {
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(113, 242, 0, 0.28);
  background: rgba(113, 242, 0, 0.035);
}

.feature-grid strong {
  display: block;
  color: var(--green-vector);
  font-family: var(--display-font);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.feature-grid span {
  display: block;
  margin-top: 14px;
  color: #f4fbf8;
  font-family: var(--display-font);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 20px;
  width: min(1370px, calc(100% - (var(--page-x) * 2)));
  margin: 0 auto;
  padding: clamp(42px, 5.6vh, 54px) 0 10px;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  color: #f6fff3;
  font-family: var(--display-font);
  font-size: clamp(0.72rem, 0.74vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.brand strong,
.nav a.active {
  color: var(--green);
  text-shadow: 0 0 12px rgba(84, 255, 57, 0.72);
}

.brand-mark {
  width: 38px;
  height: 44px;
  overflow: visible;
  color: var(--green-vector);
  filter:
    drop-shadow(0 0 3px rgba(113, 242, 0, 0.86))
    drop-shadow(0 0 11px rgba(113, 242, 0, 0.36));
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.brand-logo {
  width: auto;
  height: 38px;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(84, 255, 57, 0.32));
}

.brand-word {
  display: inline-block;
  overflow: hidden;
  max-width: min(220px, 28vw);
  text-overflow: ellipsis;
  transform: scaleX(1.05);
  transform-origin: left center;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(42px, 4vw, 72px);
  min-width: 0;
  max-width: min(760px, 54vw);
  overflow-x: auto;
  overflow-y: hidden;
  color: #dce6e2;
  font-family: var(--display-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.095em;
}

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

.nav-links a {
  position: relative;
  flex: 0 0 auto;
  padding: 9px 0;
}

.nav-links a.active::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  content: "";
}

.login {
  justify-self: end;
  min-width: 102px;
  padding: 12px 22px;
  border: 1px solid rgba(84, 255, 57, 0.74);
  border-radius: 7px;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 18px rgba(80, 255, 47, 0.05);
}

.hero {
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 116px);
  align-content: start;
  padding: clamp(112px, 15vh, 154px) 24px clamp(84px, 12vh, 150px);
  text-align: center;
}

.layout-chip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 262px;
  height: 40px;
  min-width: 262px;
  min-height: 40px;
  margin-bottom: clamp(30px, 4.4vh, 44px);
  color: var(--green-vector);
  font-family: var(--display-font);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow:
    0 0 4px rgba(113, 242, 0, 0.96),
    0 0 14px rgba(113, 242, 0, 0.76);
  filter: drop-shadow(0 0 5px rgba(113, 242, 0, 0.54));
}

.layout-frame {
  position: absolute;
  inset: 0;
  width: 262px;
  height: 40px;
  overflow: visible;
}

.layout-frame path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.layout-label,
.stopwatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  text-align: center;
}

.stopwatch {
  font-variant-numeric: tabular-nums;
}

.stopwatch-cell,
.stopwatch-separator {
  display: inline-block;
  line-height: 1;
  text-align: center;
}

.stopwatch-cell {
  width: 0.78em;
}

.stopwatch-separator {
  width: 0.42em;
}

h1 {
  display: grid;
  gap: 6px;
  margin: 0;
  max-width: 840px;
  font-family: var(--display-font);
  font-size: clamp(2.9rem, 5.05vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.105em;
  line-height: 0.96;
  text-transform: uppercase;
  transform: scaleX(1.13);
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.7),
    0 0 18px rgba(255, 255, 255, 0.16);
}

h1 strong {
  color: var(--green);
  font-weight: 600;
  text-shadow:
    0 0 8px rgba(84, 255, 57, 0.72),
    0 0 24px rgba(84, 255, 57, 0.32);
}

.hero p {
  margin: 24px 0 0;
  max-width: min(760px, 100%);
  color: #e7eeee;
  font-family:
    "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI",
    sans-serif;
  font-size: clamp(0.95rem, 1.18vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.34);
}

.home-config-panel {
  width: min(920px, 100%);
  margin-top: 42px;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(84, 255, 57, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 255, 57, 0.08), rgba(84, 255, 57, 0.015)),
    rgba(1, 12, 4, 0.78);
  box-shadow:
    0 0 26px rgba(84, 255, 57, 0.14),
    inset 0 0 28px rgba(84, 255, 57, 0.06);
  color: rgba(236, 246, 240, 0.86);
  font-family:
    "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI",
    sans-serif;
  font-size: 0.96rem;
  line-height: 1.85;
  text-align: left;
}

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

.home-config-panel :is(h1, h2, h3, h4, p, ul, ol, blockquote) {
  margin-top: 0;
}

.home-config-panel :is(h1, h2, h3, h4) {
  color: #f7fff5;
  font-family: var(--display-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-config-panel a {
  color: var(--green);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(84, 255, 57, 0.28);
}

.home-config-panel code {
  border: 1px solid rgba(84, 255, 57, 0.22);
  border-radius: 5px;
  padding: 0.08rem 0.32rem;
  background: rgba(84, 255, 57, 0.08);
  color: var(--green);
}

.home-config-panel iframe {
  width: 100%;
  min-height: min(68vh, 720px);
  border: 1px solid rgba(84, 255, 57, 0.28);
  border-radius: 7px;
  background: #000;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  min-height: 42px;
  border: 1px solid rgba(84, 255, 57, 0.6);
  border-radius: 7px;
  font-family: var(--display-font);
  font-size: clamp(0.78rem, 0.82vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.actions .primary {
  border-color: rgba(84, 255, 57, 0.92);
  background: linear-gradient(90deg, #54ff39, #76ff4c);
  color: #031006;
  box-shadow:
    0 0 24px rgba(84, 255, 57, 0.34),
    inset 0 0 14px rgba(255, 255, 255, 0.24);
}

.actions .primary span {
  margin-left: 16px;
  color: #031006;
  font-size: 0.95rem;
}

.actions .secondary {
  color: #d7dfdc;
  border-color: rgba(80, 255, 47, 0.5);
}

.actions a:hover {
  border-color: rgba(84, 255, 57, 0.95);
  color: #fff;
  background: rgba(84, 255, 57, 0.09);
  box-shadow:
    0 0 18px rgba(84, 255, 57, 0.34),
    inset 0 0 16px rgba(84, 255, 57, 0.12);
  transform: translateY(-1px);
}

.actions .primary:hover {
  color: #031006;
  background: linear-gradient(90deg, #72ff55, #9aff68);
  box-shadow:
    0 0 30px rgba(84, 255, 57, 0.54),
    inset 0 0 18px rgba(255, 255, 255, 0.28);
}

.scroll-hint {
  position: absolute;
  right: 0;
  bottom: clamp(28px, 4.2vh, 46px);
  left: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: rgba(221, 236, 226, 0.66);
  font-family: var(--display-font);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-hint span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.scroll-hint span::before,
.scroll-hint span::after {
  width: clamp(52px, 8vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 255, 57, 0.48));
  content: "";
}

.scroll-hint span::after {
  background: linear-gradient(90deg, rgba(84, 255, 57, 0.48), transparent);
}

.scroll-hint i {
  position: relative;
  width: 16px;
  height: 26px;
  border: 1px solid rgba(84, 255, 57, 0.58);
  border-radius: 999px;
  box-shadow:
    0 0 12px rgba(84, 255, 57, 0.18),
    inset 0 0 10px rgba(84, 255, 57, 0.08);
}

.scroll-hint i::before {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  content: "";
  transform: translateX(-50%);
}

.actions a:active {
  transform: translateY(0);
  box-shadow:
    0 0 10px rgba(84, 255, 57, 0.28),
    inset 0 0 20px rgba(84, 255, 57, 0.18);
}

@media (max-width: 820px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100% - 36px, 760px);
    padding-top: 24px;
  }

  .brand-word {
    max-width: min(48vw, 220px);
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    font-size: 0.76rem;
  }

  .login {
    min-width: 88px;
    padding: 11px 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 96px;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 4.8rem);
    letter-spacing: 0.07em;
    transform: scaleX(1);
  }

  .hero p {
    letter-spacing: 0.12em;
  }

  .actions {
    width: 100%;
    gap: 14px;
  }

  .actions a {
    width: min(100%, 320px);
  }

  .scroll-hint {
    bottom: 28px;
  }

  .scroll-hint span::before,
  .scroll-hint span::after {
    width: 38px;
  }

  .subpage {
    width: min(100% - 36px, 760px);
    padding-top: 44px;
  }

  .subpage-layout,
  .pricing-grid,
  .model-shell,
  .ranking-grid,
  .dashboard-grid,
  .dashboard-layout,
  .console-shell,
  .metric-strip,
  .docs-grid,
  .about-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .console-status {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .signal-board,
  .security-orbit,
  .terminal {
    min-height: 320px;
  }

  .security-tag {
    position: static;
    margin: 8px;
  }

  .security-orbit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .orbit-ring {
    display: none;
  }
}
