/* SPDX-License-Identifier: GPL-3.0-only */
:root {
  color-scheme: dark;
  --bg: #050814;
  --panel: rgba(14, 20, 38, 0.78);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #2563eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

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

/* 氛围极光与背景点阵 */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.42;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 {
  width: 620px;
  height: 460px;
  top: -140px;
  left: -80px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.55), transparent 70%);
}
.orb-2 {
  width: 640px;
  height: 520px;
  top: 40px;
  right: -140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.44), transparent 70%);
  animation-delay: -6s;
}
.orb-3 {
  width: 520px;
  height: 420px;
  bottom: -120px;
  left: 34%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 70%);
  animation-delay: -11s;
}
.grid-mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 78%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, 18px, 0) scale(1.06); }
}

/* 悬浮毛玻璃导航 */
.topbar-shell {
  position: sticky;
  top: 12px;
  z-index: 40;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px 0;
}
.topbar {
  padding: 9px 14px;
  border-radius: 16px;
  background: rgba(11, 16, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(2, 6, 20, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.28);
}
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.34);
}

.nav-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.ghost-btn, .primary-btn, .workshop-pill-btn, .workshop-cta, .mini-btn, .skin-btn, .act-btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ghost-btn {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.22); }

.workshop-pill-btn {
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 650;
  color: #f5d0fe;
  border-color: rgba(236, 72, 153, 0.42);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.20), rgba(168, 85, 247, 0.22));
}
.workshop-pill-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 114, 182, 0.68);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.26);
}

.primary-btn {
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 650;
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.55);
  background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }

.workshop-cta {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 650;
  color: #ffffff;
  border-color: rgba(244, 114, 182, 0.55);
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  box-shadow: 0 6px 22px rgba(217, 70, 239, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.workshop-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

.lg { padding: 11px 20px; font-size: 14px; border-radius: 12px; }

.container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px 56px;
}

/* Hero */
.hero { text-align: center; padding: 20px 0 26px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 15%, #bae6fd 58%, #f5d0fe 96%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  margin: 0 auto;
  max-width: 740px;
  font-size: 15px;
  color: #cbd5e1;
}
.hero-cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-stats {
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.stat-pill {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-pill strong {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(90deg, #7dd3fc, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-pill span { font-size: 11.5px; color: var(--muted); }

/* macOS Window Frame Playground */
.playground-card {
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  padding: 14px 16px 16px;
  box-shadow: 0 30px 80px rgba(2, 6, 20, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
}
.chrome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.win-dots { display: inline-flex; gap: 6px; }
.win-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.win-dots span:nth-child(1) { background: #ff5f57; }
.win-dots span:nth-child(2) { background: #febc2e; }
.win-dots span:nth-child(3) { background: #28c840; }
.win-dots.sm span { width: 8px; height: 8px; }
.chrome-title { font-size: 12px; color: #cbd5e1; font-weight: 600; text-align: center; }
.chrome-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.skin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.skin-btn {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}
.skin-btn:hover { background: rgba(255, 255, 255, 0.09); }
.skin-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.60);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.18);
}

.swatch { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.s-cat { background: linear-gradient(160deg, #f2c43a 0%, #151515 45%); }
.s-dimo { background: linear-gradient(160deg, #fecc33 0%, #5c9ff5 42%, #3f7fd8 100%); }
.s-snow { background: linear-gradient(155deg, #f4f8ff 0%, #9fd8f8 48%, #547bb8 100%); }
.s-doll { background: linear-gradient(155deg, #ffffff 0%, #68a8f0 56%, #c82830 100%); }
.s-usagi { background: linear-gradient(155deg, #fcf0cc 0%, #fed564 46%, #f2988f 100%); }
.s-hellokitty { background: linear-gradient(155deg, #ffffff 0%, #ffc2d4 46%, #f22943 100%); }

.stage-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hint-chip { font-size: 12px; color: var(--muted); }
.mini-btn {
  padding: 5.5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}
.mini-btn:hover { background: rgba(255, 255, 255, 0.14); }

.stage-wrap {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: background .25s ease;
}
.stage-wrap.dark {
  background:
    radial-gradient(circle at 50% 24%, rgba(56, 189, 248, 0.22), transparent 54%),
    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.16), transparent 52%),
    linear-gradient(180deg, #1b2748 0%, #10172c 65%, #0a0f1f 100%);
}
.stage-wrap.light {
  background:
    radial-gradient(circle at 50% 28%, rgba(96, 165, 250, 0.28), transparent 56%),
    linear-gradient(180deg, #f1f6ff 0%, #d8e5fb 65%, #c5d7f3 100%);
}
.stage-spotlight {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 460px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(125, 211, 252, 0.24) 0%, rgba(56, 189, 248, 0.06) 52%, transparent 74%);
  pointer-events: none;
  z-index: 0;
}
.stage-wrap.light .stage-spotlight {
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.18) 0%, transparent 72%);
}

#stage3d, #stage2d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 58%;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1);
}
#stage3d { z-index: 1; pointer-events: none; }
#stage2d { z-index: 2; }
.stage-wrap.peeking #stage3d,
.stage-wrap.peeking #stage2d {
  transform: translateX(33%) rotate(-16deg);
}

.ai-pill {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  height: 27px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(42, 28, 22, 0.92) 0%, rgba(26, 18, 15, 0.96) 100%);
  box-shadow: 0 6px 18px rgba(8, 12, 24, 0.34), 0 0 0 0.5px rgba(253, 186, 116, 0.42) inset;
  font-size: 11.5px;
  color: #f8fafc;
}
.ai-pill[hidden] { display: none; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #fb923c; }
.ai-name { font-weight: 600; }
.ai-sep { width: 2.5px; height: 2.5px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.ai-detail { color: #fed7aa; }
.ai-close {
  appearance: none; border: 0; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 11px; line-height: 16px; cursor: pointer;
}

.pet-bubble {
  position: absolute;
  left: 50%;
  top: 52px;
  transform: translateX(-50%);
  z-index: 11;
  max-width: min(330px, calc(100% - 32px));
  padding: 8px 13px 9px;
  border-radius: 13px;
  font-size: 12px;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(22, 28, 44, 0.94) 0%, rgba(14, 19, 32, 0.98) 100%);
  box-shadow: 0 10px 26px rgba(8, 12, 24, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.24) inset;
}
.pet-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: rgba(14, 19, 32, 0.98);
  transform: translateX(-50%) rotate(45deg);
}
.pet-bubble[hidden] { display: none; }
.pb-sender {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
}

.action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 13px;
}

.act-btn {
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.055);
}
.act-btn:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-1px); }
.act-btn.active {
  background: rgba(56, 189, 248, 0.20);
  border-color: rgba(56, 189, 248, 0.58);
  color: #ffffff;
}
.act-btn.primary-act {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.30), rgba(14, 165, 233, 0.24));
  border-color: rgba(56, 189, 248, 0.50);
  color: #e0f2fe;
}

.workshop-box {
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: 15px;
  background: rgba(7, 11, 24, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.ws-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ws-head strong { display: block; font-size: 13.5px; }
.ws-head small { display: block; font-size: 11.5px; color: var(--muted); }
.ws-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ws-label {
  font-size: 12px;
  color: var(--muted);
  min-width: 62px;
}
.ws-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 4px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.ws-chip:hover { background: rgba(255, 255, 255, 0.12); }
.ws-chip.active {
  background: rgba(56, 189, 248, 0.20);
  border-color: rgba(56, 189, 248, 0.60);
  color: #ffffff;
}
.ws-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.ws-colors label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 9px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.ws-colors input[type="color"] {
  appearance: none;
  width: 22px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

/* 3D 创意工坊 Spotlight */
.workshop-spotlight {
  margin-top: 26px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(24, 24, 54, 0.88), rgba(14, 22, 42, 0.90));
  border: 1px solid rgba(236, 72, 153, 0.30);
  box-shadow: 0 24px 60px rgba(2, 6, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
}
.spot-badge {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(244, 114, 182, 0.38);
  color: #f9a8d4;
}
.spot-copy h2 {
  margin: 12px 0 10px;
  font-size: clamp(20px, 2.8vw, 27px);
  line-height: 1.24;
  letter-spacing: -0.02em;
}
.spot-copy p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #cbd5e1;
}
.spot-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #e2e8f0;
}
.spot-media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52);
  transition: transform .2s ease, box-shadow .2s ease;
}
.spot-media:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(236, 72, 153, 0.24);
}
.spot-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bento Feature Grid */
.bento-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feat-card {
  background: rgba(14, 21, 40, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.feat-card:hover {
  transform: translateY(-2px);
  background: rgba(18, 27, 50, 0.88);
  border-color: rgba(125, 211, 252, 0.36);
}
.feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}
.feat-icon svg { width: 20px; height: 20px; }
.feat-card.accent-emerald .feat-icon { background: rgba(16, 185, 129, 0.14); border-color: rgba(52, 211, 153, 0.30); color: #6ee7b7; }
.feat-card.accent-pink .feat-icon { background: rgba(236, 72, 153, 0.14); border-color: rgba(244, 114, 182, 0.32); color: #f9a8d4; }
.feat-card.accent-violet .feat-icon { background: rgba(168, 85, 247, 0.14); border-color: rgba(192, 132, 252, 0.32); color: #d8b4fe; }
.feat-card.accent-amber .feat-icon { background: rgba(245, 158, 11, 0.14); border-color: rgba(251, 191, 36, 0.32); color: #fde68a; }
.feat-card h3 { margin: 0 0 7px; font-size: 15px; font-weight: 700; }
.feat-card p { margin: 0; font-size: 12.8px; color: var(--muted); line-height: 1.6; }

/* One-Line AI Prompt Box */
.prompt-box {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(16, 24, 48, 0.90), rgba(11, 17, 35, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 18px 42px rgba(2, 6, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 12px;
}
.prompt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.prompt-preview {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(4, 7, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}
.mini-btn.accent-btn {
  background: rgba(56, 189, 248, 0.20);
  border-color: rgba(125, 211, 252, 0.45);
  color: #e0f2fe;
}
.mini-btn.accent-btn:hover {
  background: rgba(56, 189, 248, 0.30);
}

/* Terminal MCP Box */
.mcp-box {
  margin-top: 20px;
  background: rgba(10, 15, 30, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 18px;
  padding: 15px 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mcp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 11px;
}
.mcp-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mcp-box pre {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(4, 7, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #bae6fd;
  font-size: 12.5px;
  overflow-x: auto;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px 36px;
  font-size: 12.5px;
  color: var(--muted);
}
footer a { color: #7dd3fc; }
footer a:hover { text-decoration: underline; }

.card-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 8, 20, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.card-modal[hidden] { display: none !important; }
.cm-dialog {
  width: min(820px, 100%);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.70);
}
.cm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cm-body {
  border-radius: 12px;
  overflow: hidden;
  background: #080d1d;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cm-body img {
  display: block;
  width: 100%;
  height: auto;
}
.cm-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cm-tip { font-size: 12px; color: var(--muted); }
.cm-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workshop-spotlight { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .stage-wrap { height: 370px; }
  .chrome-title { display: none; }
}
