:root {
  --bg: #0b1020;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --brand: #6d7dff;
  --brand-2: #46d1ff;
  --danger: #ff4d6d;
  --ok: #4ade80;
  --radius: 16px;
  --radius-sm: 12px;
  --ring: 0 0 0 4px rgba(109, 125, 255, 0.25);
  --max: 1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fc;
    --surface: rgba(15, 23, 42, 0.05);
    --surface-2: rgba(15, 23, 42, 0.08);
    --text: rgba(15, 23, 42, 0.92);
    --muted: rgba(15, 23, 42, 0.72);
    --faint: rgba(15, 23, 42, 0.55);
    --border: rgba(15, 23, 42, 0.12);
    --shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
    --ring: 0 0 0 4px rgba(109, 125, 255, 0.18);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(900px 600px at 20% 10%, rgba(109, 125, 255, 0.35), transparent 60%),
    radial-gradient(800px 520px at 85% 15%, rgba(70, 209, 255, 0.25), transparent 60%),
    radial-gradient(700px 480px at 70% 85%, rgba(255, 77, 109, 0.18), transparent 60%), var(--bg);
  line-height: 1.5;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: light) {
  .topbar {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25));
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brandmark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brandmark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.brandmark span {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.product {
  min-width: 0;
}

.product .name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product .sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-title {
  font-weight: 750;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 999px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

@media (prefers-color-scheme: light) {
  .pill {
    background: rgba(15, 23, 42, 0.03);
  }
}

.pill code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.hero {
  padding: 34px 0 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: light) {
  .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65));
  }
}

.hero-main {
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 40% 40%, rgba(109, 125, 255, 0.35), transparent 65%);
  transform: rotate(15deg);
  pointer-events: none;
}

.headline {
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 14px 30px rgba(109, 125, 255, 0.28);
}

.btn-primary[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

@media (prefers-color-scheme: light) {
  .btn-secondary {
    background: rgba(15, 23, 42, 0.04);
  }
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 960px) {
  .products {
    grid-template-columns: 1fr;
  }
}

.product-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

@media (prefers-color-scheme: light) {
  .product-card {
    background: rgba(15, 23, 42, 0.03);
  }
}

.product-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.product-card .desc {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.product-card .pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.product-card .pills .pill {
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: light) {
  .product-card .pills .pill {
    background: rgba(15, 23, 42, 0.03);
  }
}

.meta .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

@media (prefers-color-scheme: light) {
  .meta .badge {
    background: rgba(15, 23, 42, 0.03);
  }
}

section {
  padding: 18px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.list-card {
  padding: 16px;
}

details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 12px;
}

@media (prefers-color-scheme: light) {
  details {
    background: rgba(15, 23, 42, 0.03);
  }
}

details[open] {
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: light) {
  details[open] {
    background: rgba(255, 255, 255, 0.7);
  }
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-weight: 750;
  font-size: 13px;
}

summary::-webkit-details-marker {
  display: none;
}

summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

.chev {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  margin-top: 1px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

details[open] .chev {
  transform: rotate(180deg);
}

.detail-body {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.detail-body ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.detail-body li {
  margin: 6px 0;
}

.support {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.support .row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 13px;
}

@media (prefers-color-scheme: light) {
  .link {
    background: rgba(15, 23, 42, 0.03);
  }
}

.link:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.footer {
  padding: 28px 0 40px;
  color: var(--faint);
  font-size: 12px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
