:root {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #f7faff;
  --surface-blue: #eef7ff;
  --text: #202124;
  --muted: #5f6873;
  --line: #e3e8ef;
  --line-strong: #d4dce7;
  --blue: #0866ff;
  --blue-dark: #0754d6;
  --windows-blue: #0f6cbd;
  --terminal: #17191d;
  --terminal-raised: #24272d;
  --terminal-text: #e8edf2;
  --terminal-muted: #9ba7b4;
  --ok: #65d89b;
  --cyan: #69d7ff;
  --danger: #e85d64;
  --max-width: 1190px;
  font-family:
    "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "PingFang SC",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 72px 0 auto;
  height: 580px;
  content: "";
  background: #f8fbff;
  box-shadow:
    inset 0 160px 180px rgba(255, 255, 255, 0.78),
    inset -360px -80px 220px rgba(215, 237, 255, 0.48);
  pointer-events: none;
}

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

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

button {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--text);
  color: #ffffff;
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-top: 2px solid #8ee7ec;
  border-bottom: 1px solid rgba(227, 232, 239, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  height: 70px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d7eaf7;
  border-radius: 8px;
  background: #edf9ff;
  color: var(--windows-blue);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 #ffffff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a,
.header-login {
  position: relative;
  padding-block: 8px;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.header-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #ffffff;
  color: var(--muted);
}

.header-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a7b0ba;
}

.header-status.is-online .header-status-dot {
  background: #20b873;
  box-shadow: 0 0 0 4px rgba(32, 184, 115, 0.12);
}

.header-status.is-offline .header-status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(232, 93, 100, 0.12);
}

.header-login {
  font-weight: 700;
}

.header-console {
  display: none;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.brand:focus-visible,
.main-nav a:focus-visible,
.header-login:focus-visible,
.header-console:focus-visible,
.action:focus-visible,
.endpoint-copy:focus-visible,
.feature-grid a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(8, 102, 255, 0.28);
  outline-offset: 3px;
}

.hero {
  display: grid;
  min-height: 510px;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 48px;
  padding: 34px 0 24px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 20px;
  color: #1e2126;
  font-size: 58px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: #262b31;
  font-size: 48px;
}

.hero-description {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.endpoint-bar {
  display: grid;
  width: 100%;
  max-width: 570px;
  min-height: 50px;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 10px;
  margin: 26px 0;
  padding: 5px 7px 5px 17px;
  border: 1px solid rgba(221, 229, 238, 0.82);
  border-radius: 25px;
  background: rgba(238, 245, 250, 0.92);
  box-shadow: inset 0 1px 0 #ffffff;
}

.endpoint-bar code {
  overflow: hidden;
  color: #3d4651;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-path {
  color: var(--blue);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.endpoint-copy {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 108, 189, 0.08);
  color: #56616d;
  cursor: pointer;
  font-size: 17px;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.endpoint-copy:hover {
  background: rgba(15, 108, 189, 0.16);
  color: var(--windows-blue);
}

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

.action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.action:hover {
  transform: translateY(-2px);
}

.action-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(8, 102, 255, 0.2);
}

.action-primary:hover {
  background: var(--blue-dark);
}

.action-secondary {
  border-color: rgba(219, 231, 242, 0.9);
  background: rgba(233, 245, 253, 0.9);
  color: var(--blue);
}

.terminal-stage {
  position: relative;
  min-width: 0;
  height: 446px;
  padding: 18px 2px 22px 18px;
}

.terminal-stage::before {
  position: absolute;
  z-index: -1;
  inset: 0 18px 0 0;
  content: "";
  border: 1px solid rgba(201, 220, 239, 0.76);
  border-radius: 28px;
  background: rgba(229, 239, 250, 0.72);
  box-shadow: inset 0 1px 0 #ffffff;
}

.win11-terminal {
  position: relative;
  display: grid;
  overflow: hidden;
  height: 100%;
  grid-template-rows: 48px minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(225, 235, 248, 0.72);
  box-shadow:
    0 24px 60px rgba(53, 76, 108, 0.2),
    0 2px 8px rgba(31, 46, 69, 0.1);
  backdrop-filter: blur(22px) saturate(145%);
}

.terminal-titlebar {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 38px auto;
  height: 48px;
  align-items: center;
  color: var(--terminal-text);
  background: rgba(36, 39, 45, 0.96);
  font-size: 12px;
  user-select: none;
}

.terminal-tab {
  display: grid;
  min-width: 0;
  height: 36px;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0 10px;
  padding: 0 10px;
  border-radius: 7px 7px 0 0;
  background: var(--terminal);
}

.terminal-tab > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-app-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 4px;
  background: var(--windows-blue);
  color: #ffffff;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
}

.terminal-tab-close,
.terminal-new-tab {
  color: #c4cbd3;
  text-align: center;
}

.terminal-new-tab {
  font-size: 20px;
}

.window-controls {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(3, 44px);
}

.window-controls span {
  display: grid;
  place-items: center;
  color: #d6dbe1;
  font-size: 12px;
}

.window-controls span:hover {
  background: rgba(255, 255, 255, 0.08);
}

.window-controls .window-close:hover {
  background: #c42b1c;
  color: #ffffff;
}

.terminal-body {
  display: grid;
  min-height: 0;
  grid-template-rows: 48px minmax(0, 1fr);
  background: var(--terminal);
  color: var(--terminal-text);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.terminal-example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid #292c31;
  background: #111419;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-shell-label {
  margin-right: auto;
  margin-left: 12px;
  color: #748195;
  font-size: 10px;
  font-weight: 700;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6258;
  box-shadow: 0 0 10px rgba(255, 98, 88, 0.22);
}

.terminal-dot:nth-child(2) {
  background: #ffc145;
  box-shadow: 0 0 10px rgba(255, 193, 69, 0.2);
}

.terminal-dot:nth-child(3) {
  background: #23c95f;
  box-shadow: 0 0 10px rgba(35, 201, 95, 0.2);
}

.copy-curl {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #39414d;
  border-radius: 6px;
  background: #20252d;
  color: #b8c1cd;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.copy-curl:hover {
  border-color: #536171;
  background: #29313b;
  color: #ffffff;
}

.copy-curl:focus-visible {
  outline: 3px solid rgba(105, 215, 255, 0.3);
  outline-offset: 2px;
}

.terminal-example {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 22px 24px 24px;
  background: #09131f;
}

.terminal-comment {
  margin: 0 0 7px;
  color: #72839a;
  font-size: 11px;
}

.terminal-address {
  display: block;
  overflow: hidden;
  color: #ffd166;
  font-family: inherit;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curl-command {
  max-width: 100%;
  margin: 23px 0 0;
  overflow: hidden;
  color: #d8e4e8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.curl-command code {
  font-family: inherit;
}

.curl-name {
  color: #66e0d4;
}

.terminal-response {
  max-width: 100%;
  margin: 26px 0 0;
  overflow: hidden;
  color: #58d88a;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.feature-grid article {
  display: flex;
  min-width: 0;
  min-height: 214px;
  flex-direction: column;
  padding: 23px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 8px 24px rgba(42, 65, 88, 0.045),
    inset 0 1px 0 #ffffff;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #eaf5ff;
  color: var(--blue);
  font-size: 18px;
}

.feature-grid h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
}

.feature-grid p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.feature-grid a {
  margin-top: auto;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #74808c;
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

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

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  transform: translateY(20px);
  padding: 12px 16px;
  border: 1px solid rgba(8, 102, 255, 0.16);
  border-radius: 7px;
  background: #20242a;
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(21, 35, 51, 0.24);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.motion-ready [data-enter].is-entered {
  animation: enter-up 560ms ease-out both;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes enter-up {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    gap: 22px;
  }

  .main-nav {
    gap: 18px;
  }

  .header-status {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero h1 span {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  .main-nav a:nth-last-child(-n + 2) {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 0.72fr) minmax(450px, 1.28fr);
    gap: 20px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero h1 span {
    font-size: 34px;
  }

  .hero-description {
    font-size: 14px;
  }

  .endpoint-bar {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .endpoint-path {
    display: none;
  }

  .action {
    min-height: 43px;
    padding-inline: 15px;
    font-size: 12px;
  }

  .window-controls {
    grid-template-columns: repeat(3, 38px);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .header-inner {
    height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav,
  .header-status,
  .header-login {
    display: none;
  }

  .header-actions {
    display: block;
  }

  .header-console {
    display: inline-flex;
  }

  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 46px 0 40px;
  }

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

  .hero h1 {
    font-size: 48px;
  }

  .hero h1 span {
    margin-top: 4px;
    font-size: 34px;
  }

  .hero-description,
  .endpoint-bar {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .terminal-stage {
    width: 100%;
    max-width: 620px;
    height: 430px;
    margin-inline: auto;
    padding: 15px 0 24px 15px;
  }

  .terminal-stage::before {
    right: 12px;
  }

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

  .feature-grid article {
    min-height: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 22px;
  }

  .site-footer nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h1 span {
    font-size: 28px;
  }

  .hero-description {
    font-size: 13px;
    line-height: 1.75;
  }

  .endpoint-bar {
    margin-block: 22px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .action-primary {
    grid-column: 1 / -1;
  }

  .terminal-stage {
    height: 408px;
    padding-left: 0;
  }

  .terminal-stage::before {
    inset-inline: 8px;
  }

  .win11-terminal {
    border-radius: 14px;
  }

  .terminal-titlebar {
    grid-template-columns: minmax(0, 1fr) 30px auto;
  }

  .terminal-tab {
    margin-left: 7px;
    padding-inline: 8px;
  }

  .window-controls {
    grid-template-columns: repeat(3, 30px);
  }

  .terminal-example-header {
    padding-inline: 12px;
  }

  .terminal-example {
    padding: 18px 12px 22px;
  }

  .terminal-address {
    font-size: 11px;
  }

  .curl-command,
  .terminal-response {
    font-size: 10px;
  }

  .curl-command {
    margin-top: 18px;
    line-height: 1.7;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready [data-enter],
  .motion-ready [data-enter].is-entered {
    transform: none;
    opacity: 1;
    animation: none;
  }

}
