:root {
  color-scheme: dark;
  --bg: #111417;
  --surface: rgba(19, 23, 26, 0.84);
  --surface-deep: rgba(11, 13, 15, 0.78);
  --line: rgba(221, 231, 234, 0.12);
  --line-strong: rgba(221, 231, 234, 0.28);
  --text: #eef3f2;
  --muted: #95a3a5;
  --soft: #cbd6d6;
  --signal: #7fb7c4;
  --warm: #b9a982;
  --ink: #0d0f10;
  --shadow: rgba(0, 0, 0, 0.5);
  font-family:
    "Noto Sans SC",
    "HarmonyOS Sans SC",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  height: 100svh;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  overflow-y: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse 108vw 88vh at 50% 68%, rgba(127, 183, 196, 0.16), rgba(127, 183, 196, 0.06) 34%, transparent 74%),
    radial-gradient(ellipse 58vw 96vh at 50% 64%, rgba(185, 169, 130, 0.045), transparent 72%),
    radial-gradient(circle at 50% 34%, rgba(127, 183, 196, 0.08), transparent 34%),
    linear-gradient(180deg, #13181b 0%, #101315 54%, #0d0f10 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(127, 183, 196, 0.035), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 24%, rgba(0, 0, 0, 0.24));
}

body::after {
  z-index: 1;
  opacity: 0.1;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(221, 231, 234, 0.08) 42.4%, transparent 43% 100%),
    linear-gradient(250deg, transparent 0 60%, rgba(185, 169, 130, 0.055) 61%, transparent 62% 100%);
  mix-blend-mode: soft-light;
}

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

button {
  font: inherit;
}

.ai-field-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.28;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: var(--app-width, 100%);
  max-width: 100%;
  min-height: 64px;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 20, 23, 0.74);
  backdrop-filter: blur(22px) saturate(112%);
}

.brand,
.nav-links,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(238, 243, 242, 0.38);
  background: linear-gradient(145deg, rgba(238, 243, 242, 0.08), rgba(255, 255, 255, 0.01));
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: 6px;
  bottom: 6px;
  content: "";
}

.brand-mark::before {
  left: 7px;
  width: 3px;
  background: var(--signal);
}

.brand-mark::after {
  right: 7px;
  width: 3px;
  background: var(--warm);
}

.brand strong {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

.nav-links {
  justify-self: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
  outline: none;
}

.header-actions {
  justify-self: end;
  gap: 10px;
}

.text-link,
.console-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  font-weight: 760;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.text-link,
.secondary-action {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.014);
}

.console-link,
.primary-action {
  border-color: var(--text);
  color: var(--ink);
  background: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.console-link:hover,
.text-link:hover {
  border-color: rgba(127, 183, 196, 0.74);
}

main {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 104px 0 62px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  position: absolute;
  z-index: 1;
  top: 128px;
  left: 50%;
  width: min(34vw, 420px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(127, 183, 196, 0.34), transparent);
  transform: translateX(-50%);
}

.hero::after {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse 92vw 66vh at 50% 68%, rgba(127, 183, 196, 0.13), rgba(127, 183, 196, 0.045) 42%, transparent 78%),
    radial-gradient(ellipse 46vw 92vh at 50% 62%, rgba(238, 243, 242, 0.035), transparent 74%);
  mix-blend-mode: screen;
}

.hero-copy-block {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(100%, 980px);
}

.hero-copy-block::before {
  width: 72px;
  height: 1px;
  margin-bottom: 28px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--warm), transparent);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--signal);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(54px, 6.2vw, 82px);
  font-weight: 920;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--soft);
  font-size: 20px;
  font-weight: 620;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.interface-stage {
  position: relative;
  overflow: visible;
  width: min(100%, 860px);
  min-height: 350px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  isolation: isolate;
}

.interface-stage::before {
  display: none;
  content: none;
}

.interface-stage::after {
  display: none;
  content: none;
}

.orbit-canvas,
.orbit-core,
.stage-readout,
.stage-controls,
.orbit-dock,
.copy-button {
  position: relative;
  z-index: 2;
}

.orbit-canvas {
  position: absolute;
  top: 10px;
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 1;
  width: min(1180px, calc(100vw - 24px));
  height: 276px;
  pointer-events: none;
  transform: translateX(-50%);
}

.orbit-core {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(221, 231, 234, 0.18);
  border-radius: 999px;
  color: var(--text);
  background:
    radial-gradient(circle, rgba(238, 243, 242, 0.14) 0 8%, rgba(127, 183, 196, 0.16) 9% 33%, rgba(13, 15, 16, 0.56) 34% 100%);
  box-shadow:
    0 0 0 18px rgba(127, 183, 196, 0.035),
    0 0 72px rgba(127, 183, 196, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.stage-readout {
  position: absolute;
  top: 38px;
  left: 0;
  z-index: 5;
  isolation: isolate;
  width: min(300px, 34vw);
  min-height: 164px;
  padding-left: 18px;
  text-align: left;
}

.stage-readout::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(127, 183, 196, 0.58), rgba(185, 169, 130, 0.32), transparent);
}

.feature-page {
  display: none;
}

.feature-page.is-active {
  display: block;
  animation: readout-in 420ms ease both;
}

.readout-kicker {
  margin-bottom: 10px;
  color: var(--signal);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(13, 15, 16, 0.92);
}

.feature-page h2 {
  max-width: 280px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 24px;
  font-weight: 880;
  line-height: 1.16;
  text-shadow:
    0 1px 0 rgba(13, 15, 16, 0.92),
    0 8px 18px rgba(13, 15, 16, 0.72);
}

.feature-page p:not(.readout-kicker) {
  max-width: 296px;
  margin-bottom: 14px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.8;
  text-shadow:
    0 1px 0 rgba(13, 15, 16, 0.92),
    0 6px 14px rgba(13, 15, 16, 0.84);
}

.readout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.readout-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(221, 231, 234, 0.14);
  color: var(--muted);
  background: rgba(17, 20, 23, 0.24);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.stage-controls {
  position: absolute;
  top: 50px;
  right: 0;
  z-index: 5;
  display: grid;
  width: 152px;
}

.stage-tab {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid rgba(221, 231, 234, 0.12);
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.stage-tab span {
  color: rgba(185, 169, 130, 0.62);
  font-size: 10px;
}

.stage-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(127, 183, 196, 0), rgba(127, 183, 196, 0.78));
  transition: width 180ms ease;
}

.stage-tab:hover,
.stage-tab:focus-visible,
.stage-tab.is-active {
  color: var(--text);
  outline: none;
  transform: translateX(-4px);
}

.stage-tab:hover::after,
.stage-tab:focus-visible::after,
.stage-tab.is-active::after {
  width: 100%;
}

@keyframes readout-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orbit-core span,
.orbit-core strong {
  display: block;
  letter-spacing: 0;
}

.orbit-core span {
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.orbit-core strong {
  margin-top: 4px;
  color: var(--text);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.interface-stage:hover .orbit-core,
.interface-stage.is-hovering .orbit-core {
  border-color: rgba(127, 183, 196, 0.42);
  box-shadow:
    0 0 0 24px rgba(127, 183, 196, 0.045),
    0 0 92px rgba(127, 183, 196, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%) scale(1.035);
}

.interface-stage.is-canvas-core .orbit-core {
  visibility: hidden;
  opacity: 0;
}

.orbit-dock {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.endpoint-pill {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  text-align: left;
}

.endpoint-pill span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.endpoint-pill code {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(127, 183, 196, 0.34);
  color: var(--signal);
  background: rgba(17, 20, 23, 0.34);
  cursor: pointer;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  transform: none;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.copy-button:hover {
  color: var(--text);
}

.copy-button.copied {
  color: var(--warm);
  border-color: rgba(185, 169, 130, 0.44);
  background: rgba(185, 169, 130, 0.08);
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(17, 20, 23, 0.74);
  backdrop-filter: blur(18px);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.site-footer a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }

  .site-header {
    min-height: 62px;
    padding: 0 14px;
  }

  .text-link {
    display: none;
  }

  .console-link {
    min-height: 38px;
    padding: 0 12px;
  }

  main,
  .site-footer {
    width: min(100% - 24px, 1240px);
  }

  .hero {
    min-height: auto;
    padding: 94px 0 28px;
  }

  .hero-copy-block {
    width: 100%;
  }

  .hero-copy-block::before {
    margin-bottom: 22px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 34px;
    line-height: 1.02;
  }

  .hero-copy {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-bottom: 16px;
  }

  .interface-stage {
    min-height: 558px;
  }

  .stage-readout {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 154px;
    padding: 0 0 0 14px;
  }

  .feature-page h2 {
    max-width: 100%;
    font-size: 22px;
  }

  .feature-page p:not(.readout-kicker) {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.72;
  }

  .readout-tags {
    gap: 6px;
  }

  .readout-tags span {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  .stage-controls {
    position: relative;
    top: auto;
    right: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin: 12px 0 8px;
    border-top: 1px solid rgba(221, 231, 234, 0.1);
  }

  .stage-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 34px;
    font-size: 11px;
  }

  .stage-tab span {
    display: none;
  }

  .stage-tab:hover,
  .stage-tab:focus-visible,
  .stage-tab.is-active {
    transform: none;
  }

  .orbit-canvas {
    top: 184px;
    width: min(1080px, calc(100vw - 20px));
    height: 286px;
  }

  .orbit-core {
    top: 58%;
    width: 118px;
    height: 118px;
  }

  .orbit-core span {
    font-size: 9px;
  }

  .orbit-core strong {
    font-size: 15px;
  }

  .orbit-dock {
    right: 12px;
    bottom: 18px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .endpoint-pill {
    padding: 0;
  }

  .endpoint-pill code {
    font-size: 13px;
  }

  .copy-button {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
  }

  .site-footer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100% - 24px, 1240px);
    margin: 0 auto;
    padding: 10px 0 max(14px, env(safe-area-inset-bottom));
    font-size: 10px;
  }

  .site-footer span:nth-child(2) {
    display: none;
  }
}

@media (max-height: 820px) and (min-width: 681px) {
  .hero {
    padding: 86px 0 54px;
  }

  .hero-copy-block::before {
    margin-bottom: 20px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(46px, 5.4vw, 66px);
  }

  .hero-copy {
    margin-bottom: 18px;
    font-size: 18px;
  }

  .interface-stage {
    min-height: 328px;
  }

  .orbit-canvas {
    height: 252px;
  }

  .stage-readout {
    top: 28px;
  }

  .stage-controls {
    top: 36px;
  }

  .feature-page h2 {
    font-size: 22px;
  }

  .feature-page p:not(.readout-kicker) {
    font-size: 12px;
    line-height: 1.66;
  }
}
