@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --siweishu-bg: #080808;
  --siweishu-card: #111111;
  --siweishu-card-hover: #151515;
  --siweishu-border: #222222;
  --siweishu-border-hover: #333333;
  --siweishu-copy: #a1a1aa;
}

html {
  background: var(--siweishu-bg);
  overflow-x: clip;
}

body,
body *:not(.mono):not([class*="font-mono"]) {
  font-family: "Geist", "Inter", sans-serif !important;
}

body {
  color: var(--siweishu-copy);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: clip;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.mono,
[class*="font-mono"] {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Geist", "Inter", sans-serif !important;
  font-weight: 600 !important;
  color: #f4f4f5;
}

main p,
.site-home #root section p {
  color: var(--siweishu-copy) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

blockquote p { color: rgba(255,255,255,.86) !important; }

.site-home #root h1,
.site-developers main > section:first-child h1,
.site-pricing main > section:first-child h1,
.site-case .hero-title {
  font-size: 56px !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
}

main h1 + p,
main h2 + p,
.site-home #root section h1 + p,
.site-home #root section h2 + p {
  margin-top: 32px !important;
}

.siweishu-nav-logo {
  display: block !important;
  width: auto !important;
  height: 32px !important;
  min-width: 140px !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.3)) !important;
  image-rendering: auto;
}

.siweishu-brand-lockup,
a[aria-label="思维树 Siweishu 首页"] {
  letter-spacing: .02em;
}

.siweishu-mobile-menu-toggle,
.siweishu-mobile-menu {
  display: none;
}

.site-home #root nav,
header.nav-shell,
.site-case > header {
  box-sizing: border-box !important;
  height: 64px !important;
  min-height: 64px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  background: rgba(8,8,8,.8) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: none !important;
}

.site-home #root nav > div,
header.nav-shell > div,
.site-case > header > div {
  height: 63px !important;
}

.site-home #root nav a:not(.siweishu-brand-lockup),
header nav a,
.site-case > header nav a {
  color: #888 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.site-home #root nav a:not(.siweishu-brand-lockup):hover,
header nav a:hover,
header nav a:focus-visible,
header nav a.active,
.site-case > header nav a:hover,
.site-case > header nav a:focus-visible,
.site-case > header nav a.active {
  color: #fff !important;
}

.button-primary,
a.button-primary,
button.button-primary,
.site-home #root button[class*="bg-white"][class*="text-black"] {
  min-height: 0 !important;
  height: auto !important;
  border: 1px solid #fff !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #080808 !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  transform: none !important;
}

.button-primary:hover,
a.button-primary:hover,
button.button-primary:hover,
.site-home #root button[class*="bg-white"][class*="text-black"]:hover {
  background: #ededed !important;
  border-color: #ededed !important;
  box-shadow: none !important;
  transform: none !important;
}

.button-secondary,
button,
a {
  box-shadow: none;
}

.site-home #product [class*="rounded-[16px]"][class*="border"],
.site-home #workflow [class*="rounded-[16px]"][class*="border"],
.site-home #cases [class*="rounded-[20px]"][class*="border"],
.site-home #root section [class*="rounded-[14px]"][class*="border"],
.docs-card,
.terminal-panel,
.security-card,
.pricing-card,
.cta-panel,
.site-pricing details,
.challenge-card,
.agent-card,
.metric-card,
.workflow-shell,
.workflow-row {
  border: 1px solid var(--siweishu-border) !important;
  border-radius: 16px !important;
  background: var(--siweishu-card) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color .2s ease, background-color .2s ease !important;
}

.site-home #product [class*="rounded-[16px]"][class*="border"]:hover,
.site-home #workflow [class*="rounded-[16px]"][class*="border"]:hover,
.site-home #cases [class*="rounded-[20px]"][class*="border"]:hover,
.site-home #root section [class*="rounded-[14px]"][class*="border"]:hover,
.docs-card:hover,
.terminal-panel:hover,
.security-card:hover,
.pricing-card:hover,
.pricing-card.featured:hover,
.cta-panel:hover,
.site-pricing details:hover,
.challenge-card:hover,
.agent-card:hover,
.metric-card:hover,
.workflow-shell:hover,
.workflow-row:hover {
  border-color: var(--siweishu-border-hover) !important;
  background: var(--siweishu-card-hover) !important;
  box-shadow: none !important;
  transform: none !important;
}

.pricing-card.featured {
  border-color: var(--siweishu-border) !important;
  background: var(--siweishu-card) !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (min-width: 768px) {
  .site-home #root > div > section:first-of-type,
  .site-home #root > div > section:not(:first-of-type) > div[class*="max-w"],
  .site-developers main > section,
  .site-pricing main > section,
  .site-case main > section:first-child,
  .site-case main > section:not(:first-child) > div[class*="max-w"] {
    padding-top: 160px !important;
    padding-bottom: 160px !important;
  }
}

@media (max-width: 767px) {
  .site-home #root nav > div {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .site-home #root h1,
  .site-developers main > section:first-child h1,
  .site-pricing main > section:first-child h1,
  .site-case .hero-title {
    font-size: 40px !important;
    line-height: 1.08 !important;
  }

  .site-home #root > div > section:first-of-type,
  .site-home #root > div > section:not(:first-of-type) > div[class*="max-w"],
  .site-developers main > section,
  .site-pricing main > section,
  .site-case main > section:first-child,
  .site-case main > section:not(:first-child) > div[class*="max-w"] {
    padding-top: 104px !important;
    padding-bottom: 104px !important;
  }

  .siweishu-nav-logo {
    height: 32px !important;
    min-width: 140px !important;
  }

  .siweishu-mobile-menu-toggle {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: 0;
    z-index: 52;
  }

  .siweishu-mobile-menu-toggle:hover,
  .siweishu-mobile-menu-toggle:focus-visible,
  .siweishu-mobile-menu-toggle[aria-expanded="true"] {
    border-color: rgba(255,255,255,.34);
    background: rgba(255,255,255,.12);
    outline: none;
  }

  .siweishu-mobile-menu-icon,
  .siweishu-mobile-menu-icon::before,
  .siweishu-mobile-menu-icon::after {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .siweishu-mobile-menu-icon {
    position: relative;
  }

  .siweishu-mobile-menu-icon::before,
  .siweishu-mobile-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .siweishu-mobile-menu-icon::before { transform: translateY(-5px); }
  .siweishu-mobile-menu-icon::after { transform: translateY(5px); }

  .siweishu-mobile-menu-toggle[aria-expanded="true"] .siweishu-mobile-menu-icon {
    background: transparent;
  }

  .siweishu-mobile-menu-toggle[aria-expanded="true"] .siweishu-mobile-menu-icon::before {
    transform: rotate(45deg);
  }

  .siweishu-mobile-menu-toggle[aria-expanded="true"] .siweishu-mobile-menu-icon::after {
    transform: rotate(-45deg);
  }

  .siweishu-mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 49;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: calc(100dvh - 64px);
    padding: 10px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(8,8,8,.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    overflow-y: auto;
  }

  .siweishu-mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .siweishu-mobile-menu a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #f4f4f5 !important;
    font-size: 15px !important;
    line-height: 1.2;
  }

  .siweishu-mobile-menu a:last-child { border-bottom: 0; }

  .siweishu-mobile-menu a span {
    color: #52525b;
    font-family: "JetBrains Mono", ui-monospace, monospace !important;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .siweishu-mobile-menu a::after {
    content: "\2192";
    margin-left: auto;
    color: #71717a;
    font-size: 16px;
  }

  body.siweishu-mobile-nav-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .siweishu-mobile-menu,
  .siweishu-mobile-menu-icon,
  .siweishu-mobile-menu-icon::before,
  .siweishu-mobile-menu-icon::after {
    transition: none;
  }
}
