:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #070b14;
  color: #f1f5f9;
  --line: rgba(148, 163, 184, 0.16);
  --muted: #94a3b8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --cyan: #38bdf8;
  --indigo: #6366f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 18% -10%, rgba(16, 185, 129, 0.14), transparent 60%),
    radial-gradient(ellipse 75% 48% at 85% 8%, rgba(99, 102, 241, 0.16), transparent 60%),
    #070b14;
}

/* Language switch */
.lang-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#lang-switch:not(:checked) ~ * .zh {
  display: none !important;
}

#lang-switch:checked ~ * .en {
  display: none !important;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 40%, transparent 100%);
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

.ambient.one {
  width: 520px;
  height: 520px;
  background: rgba(56, 189, 248, 0.11);
  top: -210px;
  left: -130px;
}

.ambient.two {
  width: 480px;
  height: 480px;
  background: rgba(16, 185, 129, 0.09);
  right: -180px;
  top: 280px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  width: min(76rem, 100% - 3rem);
  margin: 0 auto;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(56, 189, 248, 0.25));
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  font-size: 1rem;
}

.badge-net {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.lang-btn {
  cursor: pointer;
  user-select: none;
  padding: 0.38rem 0.8rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background 0.15s, border-color 0.15s;
}

.lang-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: #60a5fa;
}

main {
  width: min(76rem, 100% - 3rem);
  margin: 0 auto;
  padding: 2.8rem 0 2.5rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #38bdf8;
}

h1 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

h1 .accent {
  background: linear-gradient(135deg, #34d399, #38bdf8 65%, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin: 0.65rem 0 0.5rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  color: #f8fafc;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

p, li {
  line-height: 1.6;
}

.intro {
  max-width: 52rem;
  color: #cbd5e1;
  font-size: 1.02rem;
  margin-bottom: 1.8rem;
}

/* KPI Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-card small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.kpi-card strong {
  font-size: 1.15rem;
  color: #f8fafc;
}

.kpi-card span {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Bounty workflow */
.pipeline-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(145deg, rgba(17, 25, 44, 0.85), rgba(11, 17, 31, 0.88));
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 16px;
  padding: 1.05rem 1.25rem;
  margin-bottom: 2rem;
}

.pipe-step {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pipe-idx {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 0.08em;
}

.pipe-step strong {
  font-size: 0.88rem;
  color: #f1f5f9;
}

.pipe-step small {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

.pipe-arrow {
  color: #475569;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Recorded cases */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0 0 1.5rem;
}

.case {
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, rgba(19, 28, 46, 0.88), rgba(11, 17, 30, 0.92));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.case.paid {
  border-color: rgba(16, 185, 129, 0.35);
}

.case.paid::before {
  background: linear-gradient(90deg, #10b981, #38bdf8);
}

.case.held {
  border-color: rgba(245, 158, 11, 0.38);
}

.case.held::before {
  background: linear-gradient(90deg, #f59e0b, #f43f5e);
}

.case.refund {
  border-color: rgba(56, 189, 248, 0.35);
}

.case.refund::before {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.case p, .case ul {
  margin: 0.3rem 0 0.75rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.case ul {
  padding-inline-start: 1.15rem;
}

.case li {
  margin-bottom: 0.3rem;
}

.case-top, .links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.case-top {
  justify-content: space-between;
}

.case-num {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status {
  border-radius: 2rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.paid .status, .paid-badge {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.held .status {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.48);
  color: #fcd34d;
}

.refund .status {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
}

/* Review status */
.gate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 0.75rem;
}

.chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.chip.ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.chip.bad {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.chip.info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.links {
  margin-top: auto;
  padding-top: 0.7rem;
}

a {
  color: #93c5fd;
  text-decoration: none;
  transition: all 0.16s ease;
}

a:hover {
  color: #fff;
}

a:focus-visible, summary:focus-visible,
#lang-switch:focus-visible ~ .site-header .lang-btn {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.primary {
  font-size: 0.84rem;
  font-weight: 650;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.48);
  color: #a7f3d0;
  border-radius: 0.65rem;
  padding: 0.52rem 0.85rem;
}

.primary:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #ecfdf5;
}

.primary.warn-btn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.48);
  color: #fde68a;
}

.primary.warn-btn:hover {
  background: rgba(245, 158, 11, 0.28);
  color: #fffbeb;
}

.primary.info-btn {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

.primary.info-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #f0f9ff;
}

.secondary {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.48rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--line);
  color: #cbd5e1;
}

.secondary:hover {
  background: rgba(51, 65, 85, 0.85);
  color: #fff;
}

details {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: #cbd5e1;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 0.45rem;
}

.hash-box {
  display: grid;
  gap: 0.45rem;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.65rem 0.8rem;
}

.hash-box small {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  color: #bae6fd;
}

/* Coding-Agent Showcase */
.agent-showcase {
  background: linear-gradient(145deg, rgba(16, 36, 48, 0.86), rgba(14, 22, 40, 0.92));
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 1.25rem;
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.agent-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.agent-desc {
  color: #cbd5e1;
  font-size: 0.93rem;
  margin: 0.4rem 0 0.9rem;
}

/* Verification Box */
.verify-box {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  align-items: center;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
}

.verify-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.cmd-block {
  margin: 0;
  padding: 0.95rem 1.1rem;
  border-radius: 0.75rem;
  background: #050811;
  border: 1px solid rgba(96, 165, 250, 0.28);
  overflow-x: auto;
  line-height: 1.65;
}

footer {
  color: #94a3b8;
  font-size: 0.84rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 58rem) {
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-bar {
    grid-template-columns: 1fr;
  }
  .pipe-arrow {
    display: none;
  }
  .verify-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 44rem) {
  main, .header-inner {
    width: calc(100% - 2rem);
  }
  main {
    padding-top: 1.75rem;
  }
  .kpi-strip, .cases {
    grid-template-columns: 1fr;
  }
}


.hero-links { margin-bottom: 0.8rem; }
.demo-note, .section-intro { color: var(--muted); font-size: 0.9rem; }
.demo-note { margin-bottom: 1.6rem; }
.section-intro { max-width: 62rem; margin-bottom: 1.3rem; }
.case h3 { margin: 1rem 0 0.6rem; font-size: 1.35rem; line-height: 1.35; }
.agent-showcase { scroll-margin-top: 7rem; }
.agent-top > div { flex: 1 1 32rem; }
.kpi-card strong { overflow-wrap: anywhere; }
.brand { flex-wrap: wrap; }
