/* Shared with /cost/index.html: tokens, background, top nav, mobile drawer */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root {
  --primary: #7c8cff;
  --primary-2: #42d7ff;
  --dark-bg: #070b17;
  --card-bg: rgba(255, 255, 255, 0.04);
  --text-main: #eef3ff;
  --text-sub: #a7b7da;
  --line: rgba(126, 156, 255, 0.28);
  --line-soft: rgba(126, 156, 255, 0.18);
  --radius-card: 16px;
  --radius-input: 12px;
  --accent-pill-bg: rgba(124, 140, 255, 0.2);
  --accent-pill-border: rgba(124, 140, 255, 0.34);
  --accent-pill-bg-hover: rgba(124, 140, 255, 0.26);
  --accent-pill-border-hover: rgba(124, 140, 255, 0.48);
}
:root[data-theme="light"] {
  --primary: #3753ff;
  --primary-2: #1fa8ff;
  --dark-bg: #f6f8ff;
  --card-bg: rgba(20, 28, 58, 0.04);
  --text-main: #0b1633;
  --text-sub: rgba(11, 22, 51, 0.62);
  --line: rgba(20, 28, 58, 0.14);
  --line-soft: rgba(20, 28, 58, 0.1);
  --accent-pill-bg: rgba(55, 83, 255, 0.12);
  --accent-pill-border: rgba(55, 83, 255, 0.24);
  --accent-pill-bg-hover: rgba(55, 83, 255, 0.18);
  --accent-pill-border-hover: rgba(55, 83, 255, 0.32);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --primary: #3753ff;
    --primary-2: #1fa8ff;
    --dark-bg: #f6f8ff;
    --card-bg: rgba(20, 28, 58, 0.04);
    --text-main: #0b1633;
    --text-sub: rgba(11, 22, 51, 0.62);
    --line: rgba(20, 28, 58, 0.14);
    --line-soft: rgba(20, 28, 58, 0.1);
  }
}
body {
  background: radial-gradient(circle at 20% -10%, #21367d 0%, var(--dark-bg) 45%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
:root[data-theme="light"] body {
  background: radial-gradient(circle at 20% -10%, rgba(55, 83, 255, 0.16) 0%, var(--dark-bg) 45%);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) body {
    background: radial-gradient(circle at 20% -10%, rgba(55, 83, 255, 0.16) 0%, var(--dark-bg) 45%);
  }
}
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 140, 255, 0.18) 0%, transparent 70%);
  top: -180px;
  right: -180px;
  z-index: 0;
  pointer-events: none;
  animation: costChromeFloat 8s ease-in-out infinite alternate;
}
@keyframes costChromeFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(40px);
  }
}
header {
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 23, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 999;
}
:root[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  transition: 0.25s;
}
.nav-links a:hover {
  color: var(--primary);
}
:root[data-theme="light"] .nav-links a {
  color: rgba(11, 22, 51, 0.7);
}
:root[data-theme="light"] .nav-links a:hover {
  color: var(--primary);
}
.nav-links .btn-mini {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-pill-bg);
  color: #dfe8ff !important;
  border: 1px solid var(--accent-pill-border);
  font-weight: 600;
}
.nav-links .btn-mini:hover {
  background: var(--accent-pill-bg-hover);
  border-color: var(--accent-pill-border-hover);
}
:root[data-theme="light"] .nav-links .btn-mini {
  color: rgba(11, 22, 51, 0.88) !important;
  border: 1px solid var(--accent-pill-border) !important;
  box-shadow: none;
}
:root[data-theme="light"] .nav-links .btn-mini:hover {
  background: var(--accent-pill-bg-hover);
  box-shadow: 0 6px 16px rgba(11, 22, 51, 0.08);
}
.mobile-menu {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--primary);
}
.mobile-cta {
  display: none;
}
.mobile-drawer {
  display: none;
}
@media (max-width: 768px) {
  .nav-wrap {
    position: relative;
    min-height: 64px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu {
    display: block;
    z-index: 999;
    padding: 6px;
    line-height: 1;
  }
  .mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-pill-bg);
    color: #dfe8ff !important;
    border: 1px solid var(--accent-pill-border);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
  }
  .mobile-cta:hover {
    background: var(--accent-pill-bg-hover);
    border-color: var(--accent-pill-border-hover);
  }
  :root[data-theme="light"] .mobile-cta {
    background: var(--accent-pill-bg);
    color: rgba(11, 22, 51, 0.86) !important;
    border: 1px solid var(--accent-pill-border);
    box-shadow: none;
  }
  :root[data-theme="light"] .mobile-cta:hover {
    background: var(--accent-pill-bg-hover);
    border-color: var(--accent-pill-border-hover);
  }
  .mobile-drawer {
    display: none !important;
  }
  body.mobile-drawer-open {
    overflow: auto !important;
  }
  body.mobile-drawer-open .mobile-drawer {
    display: flex !important;
    position: relative !important;
    z-index: 5 !important;
    background: rgba(7, 11, 23, 0.98) !important;
    border-top: 1px solid var(--line);
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 14px 20px 18px !important;
    overflow: visible !important;
  }
  .mobile-drawer a {
    display: inline-flex;
    align-items: center;
    width: 100%;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    color: #eef3ff !important;
    text-decoration: none;
  }
  :root[data-theme="light"] body.mobile-drawer-open .mobile-drawer {
    background: #ffffff !important;
    border-top: 1px solid rgba(20, 28, 58, 0.12);
  }
  :root[data-theme="light"] .mobile-drawer a {
    color: #0b1633 !important;
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) body.mobile-drawer-open .mobile-drawer {
      background: #ffffff !important;
      border-top: 1px solid rgba(20, 28, 58, 0.12);
    }
    :root:not([data-theme]) .mobile-drawer a {
      color: #0b1633 !important;
    }
  }
}
