/* Shared Design System: Fusion of wsa-live-talk.zuoluo.tv & yuanbao-search-live-deck.vercel.app */
:root {
  --bg: #f7f7f4;
  --bg-2: #efefea;
  --paper: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f5f5f1;
  --surface-3: #eaeae4;
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: rgba(15, 27, 45, 0.09);
  --line-2: rgba(15, 27, 45, 0.16);

  --accent: #0a8f68;
  --accent-2: #0ea5a4;
  --accent-ink: #ffffff;
  --grad: linear-gradient(135deg, #0a8f68 0%, #0ea5a4 100%);
  --accent-soft: rgba(10, 143, 104, 0.09);
  --accent-line: rgba(10, 143, 104, 0.28);

  --coral: #ff5a54;
  --coral-soft: rgba(255, 90, 84, 0.1);
  --coral-line: rgba(255, 90, 84, 0.3);

  --gold: #d97706;
  --gold-soft: rgba(245, 158, 11, 0.12);
  --gold-line: rgba(217, 119, 6, 0.3);

  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.1);
  --blue-line: rgba(37, 99, 235, 0.26);

  --grid: rgba(15, 27, 45, 0.045);
  --glow: rgba(14, 165, 164, 0.16);
  --shadow-sm: 0 2px 10px rgba(15, 27, 45, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 27, 45, 0.14);

  --font-sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #080c12;
  --bg-2: #0d131c;
  --paper: #101824;
  --surface: #131c29;
  --surface-2: #192434;
  --surface-3: #223045;
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --accent: #34d399;
  --accent-2: #2dd4bf;
  --accent-ink: #04140e;
  --grad: linear-gradient(135deg, #34d399 0%, #2dd4bf 100%);
  --accent-soft: rgba(52, 211, 153, 0.12);
  --accent-line: rgba(52, 211, 153, 0.32);

  --coral: #ff7b72;
  --coral-soft: rgba(255, 123, 114, 0.14);
  --coral-line: rgba(255, 123, 114, 0.32);

  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.14);
  --gold-line: rgba(251, 191, 36, 0.32);

  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.14);
  --blue-line: rgba(96, 165, 250, 0.3);

  --grid: rgba(255, 255, 255, 0.035);
  --glow: rgba(45, 212, 191, 0.13);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

/* Architectural Grid + Ambient Glow Canvas */
.canvas-bg {
  position: relative;
  background: var(--bg);
}

.canvas-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
}

.canvas-bg::after {
  content: "";
  position: fixed;
  top: -160px;
  right: -140px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Glass Pills & Buttons */
.glass-pill {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Co-branding Logo Pills */
.waytoagi-logo {
  display: block;
  position: relative;
  flex: none;
  height: clamp(23px, 4vw, 36px);
  aspect-ratio: 1003 / 201;
  overflow: hidden;
}

/* Frame the nontransparent bounds of the supplied 1268 × 405 artwork. */
.waytoagi-logo img {
  position: absolute;
  width: calc(100% * 1268 / 1003);
  height: auto;
  max-width: none;
  left: calc(-100% * 120 / 1003);
  top: calc(-100% * 93 / 201);
}

.waytoagi-chip .waytoagi-logo { height: clamp(20px, 3.4cqi, 42px); }

[data-theme="dark"] :is(.brand-pill, .demo-brand) .waytoagi-logo {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 4px #fff;
}

[data-theme="dark"] .brand-chip.waytoagi-chip,
.theme-dark .brand-chip.waytoagi-chip {
  background: #fff;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-accent { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.badge-coral { background: var(--coral-soft); color: var(--coral); border: 1px solid var(--coral-line); }
.badge-gold { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.badge-blue { background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line); }
.badge-neutral { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

.mono {
  font-family: var(--font-mono);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 5px;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
