@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111111;
  --text-dim: #444;
  --text-muted: #666;
  --border: #d0cec8;
  --link: #2a7fa5;
  --accent-orange: #febc2e;
  --accent-green: #04D27F;
  --mono: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111111; --text: #e8e8e8;
    --text-dim: #bbb; --text-muted: #888; --border: #333; --link: #5aabce;
  }
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --text: #111111;
  --text-dim: #444; --text-muted: #666; --border: #d0cec8; --link: #2a7fa5;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111111; --text: #e8e8e8;
  --text-dim: #bbb; --text-muted: #888; --border: #333; --link: #5aabce;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: 1080px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; color: var(--text); }
.logo-img { display: block; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.github-link {
  display: flex;
  align-items: center;
  color: var(--text);
  transition: color 0.15s;
  text-decoration: none;
}
.github-link:hover { color: var(--text-dim); text-decoration: none; }

.status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-pill.online { color: var(--accent-green); border-color: var(--accent-green); }
.status-pill.online .status-dot { background: var(--accent-green); box-shadow: 0 0 5px var(--accent-green); }
.status-pill.offline { color: var(--accent-orange); border-color: var(--accent-orange); }
.status-pill.offline .status-dot { background: var(--accent-orange); }

.content { max-width: 1080px; margin: 0 auto; padding: 56px 40px 80px; }

.tagline-block {
  border-left: 3px solid var(--accent-orange);
  padding-left: 18px;
  margin-bottom: 32px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.body-text { font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.body-text a { color: var(--link); }
.body-text strong { font-weight: 700; }

.star-list { list-style: none; margin: 20px 0 32px; display: flex; flex-direction: column; gap: 4px; }
.star-list li { display: flex; gap: 12px; font-size: 14px; line-height: 1.6; padding: 2px 0 2px 4px; }
.star-list li::before { content: '*'; flex-shrink: 0; }
.star-list li a { color: var(--link); }

.quote { border-left: 3px solid var(--accent-orange); padding: 4px 0 4px 20px; font-size: 15px; line-height: 1.7; margin: 28px 0 12px; }
.quote-attr { font-size: 14px; color: var(--text-dim); margin-bottom: 0; }

.apps-table { border: 1px solid var(--border); border-radius: 2px; width: 100%; overflow: hidden; margin: 24px 0 40px; }
.apps-table-row { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.apps-table-row:last-child { border-bottom: none; }
.app-cell { padding: 22px 18px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; transition: background 0.1s; }
.app-cell:last-child { border-right: none; }
.app-cell:hover { background: color-mix(in srgb, Canvas 90%, CanvasText 10%); }
a.app-cell { color: inherit; text-decoration: none; }
.app-cell-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.app-status { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.s-live { color: var(--accent-green); }
.s-beta { color: var(--accent-orange); }
.s-wip  { color: var(--text-muted); }
.app-cell-tech { font-size: 11px; color: var(--text-muted); }
.app-cell-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-top: 2px; }

.footer-outer { padding: 0 40px 60px; max-width: 1080px; margin: 0 auto; }
.footer-box { border: 1px dashed var(--border); margin-bottom: 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px dashed var(--border); }
.footer-col { padding: 20px 16px; border-right: 1px dashed var(--border); }
.footer-col:last-child { border-right: none; }
.footer-col-head { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 14px; color: var(--text-dim); text-decoration: none; transition: color 0.1s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-box-bottom { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.footer-links-row { font-size: 14px; color: var(--text-dim); }
.footer-links-row a { color: var(--text-dim); text-decoration: none; }
.footer-links-row a:hover { color: var(--text); }
.footer-links-row .sep { margin: 0 8px; color: var(--text-muted); }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-social { display: flex; align-items: center; font-size: 13px; }
.footer-social a { color: var(--text-dim); text-decoration: none; transition: color 0.1s; }
.footer-social a:hover { color: var(--text); }
.footer-social .sep { color: var(--text-muted); margin: 0 8px; }

.terminal { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin: 32px 0 40px; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.tdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tdot-r { background: #ff5f57; }
.tdot-y { background: #febc2e; }
.tdot-g { background: #28c840; }
.tname { font-size: 12px; color: var(--text-muted); display: block; text-align: center; flex: 1; padding-right: 60px; }
.terminal-body { padding: 20px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 2; }
.t-dollar { color: var(--text-muted); margin-right: 8px; }
.t-cmd { color: var(--text); }
.t-comment { color: var(--text-muted); }
.t-ok { color: #04D27F; }

.principles { margin: 40px 0; border-top: 1px solid var(--border); }
.pr-item { border-bottom: 1px solid var(--border); }
.pr-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text-muted);
  user-select: none;
  gap: 16px;
  transition: color 0.15s;
}
.pr-question:hover { color: var(--text); }
.pr-item.open .pr-question { color: #febc2e; }
.pr-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  position: relative;
  color: var(--border);
  transition: color 0.15s;
}
.pr-icon::before,
.pr-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.pr-icon::before { width: 10px; height: 1.5px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.pr-icon::after  { width: 1.5px; height: 10px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.pr-item.open .pr-icon::after { opacity: 0; }
.pr-item.open .pr-icon { color: #febc2e; }
.pr-answer {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.2s ease;
  padding: 0;
}
.pr-item.open .pr-answer { max-height: 200px; padding-bottom: 16px; }

.about-page { max-width: 1080px; margin: 0 auto; padding: 60px 40px 80px; }
.about-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px;
}
.about-title { font-size: 26px; font-weight: 900; line-height: 1.2; margin-bottom: 32px; }
.about-title span { color: var(--accent-orange); }
.about-section { margin-bottom: 52px; }
.about-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.about-section p { font-size: 14px; color: var(--text-dim); line-height: 1.9; margin-bottom: 16px; }
.about-section p:last-child { margin-bottom: 0; }

.tired-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.tired-list li { font-size: 13px; color: var(--text-dim); line-height: 1.7; padding-left: 20px; position: relative; }
.tired-list li::before { content: '×'; position: absolute; left: 0; color: #f87171; font-weight: 700; }

.builder-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.builder-list li { font-size: 13px; color: var(--text-dim); line-height: 1.7; padding-left: 20px; position: relative; }
.builder-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-orange); }

.tools-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; margin-bottom: 0;
}
.tool-cell { background: var(--bg); padding: 18px 20px; }
.tool-cell.closed { opacity: 0.45; }
.tool-name { font-size: 13px; font-family: var(--mono); font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.tool-badge { font-size: 10px; font-family: var(--mono); padding: 2px 6px; border-radius: 2px; border: 1px solid; }
.tool-badge.live { color: #4ade80; border-color: #4ade8040; background: #4ade8008; }
.tool-badge.closed { color: var(--text-muted); border-color: var(--border); }
.tool-tech { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; font-family: var(--mono); }
.tool-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

.philosophy-block {
  border-left: 3px solid var(--accent-orange);
  padding: 16px 20px; margin: 24px 0;
  background: color-mix(in srgb, Canvas 95%, CanvasText 5%);
}
.philosophy-block p { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.6; margin: 0; }

.roadmap-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.roadmap-list li {
  font-size: 13px; color: var(--text-dim); line-height: 1.7;
  padding: 12px 0; border-bottom: 1px dotted var(--border);
  display: flex; gap: 16px;
}
.roadmap-list li:last-child { border-bottom: none; }
.roadmap-label { color: var(--text-muted); font-family: var(--mono); font-size: 11px; min-width: 100px; flex-shrink: 0; padding-top: 2px; }

.sign-off {
  font-size: 13px; color: var(--text-muted); margin-top: 48px;
  padding-top: 24px; border-top: 1px solid var(--border); line-height: 1.8;
}
.sign-off strong { color: var(--text); }

.faq-layout { max-width: 1080px; margin: 0 auto; padding: 48px 40px 80px; }
.faq-header { border-left: 3px solid var(--accent-orange); padding-left: 18px; margin-bottom: 48px; }
.faq-header h1 { font-size: 15px; font-weight: 700; }
.faq-header p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.faq-section { margin-bottom: 48px; }
.faq-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 4px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  gap: 16px;
}
.faq-question:hover { color: #febc2e; }
.faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
}
.faq-icon::before { width: 10px; height: 1.5px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 10px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-item.open .faq-icon::after { opacity: 0; }
.faq-item.open .faq-question { color: #febc2e; }
.faq-item.open .faq-icon { color: #febc2e; }
.faq-answer {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dim);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
  padding: 0;
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--link); }
.faq-answer code { background: color-mix(in srgb, Canvas 85%, CanvasText 15%); border: 1px solid var(--border); padding: 1px 5px; border-radius: 2px; font-size: 12px; font-family: var(--mono); }
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 20px; }

@media (max-width: 1200px) {
  .nav-inner { padding: 0 26px; }
  .content { padding: 40px 20px 80px; }
  .footer-outer { padding: 0 16px 40px; }
  .apps-table-row { grid-template-columns: repeat(2, 1fr); }
  .app-cell { padding: 14px 12px; }
  .app-cell:nth-child(2n) { border-right: none; }
  .app-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-col { border-right: 1px dashed var(--border); border-top: 1px dashed var(--border); }
  .footer-col:nth-child(2n) { border-right: none; }
  .footer-col:first-child, .footer-col:nth-child(2) { border-top: none; }
  .terminal-body { font-size: 11px; padding: 14px; }
}

@media (max-width: 600px) {
  .about-page { padding: 32px 16px 60px; }
  .about-title { font-size: 20px; }
  .tools-grid { grid-template-columns: 1fr; }
  .faq-layout { padding: 32px 16px 60px; }
}

html, body { overflow-x: hidden; }

.cd-page { max-width: 1080px; margin: 0 auto; padding: 0 40px 80px; }

.cd-hero { text-align: center; padding: 72px 40px 52px; max-width: 760px; margin: 0 auto; }
.cd-hero-logo img { height: 250px; width: auto; display: block; margin-left: auto; margin-right: auto; }
.cd-hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.cd-hero-title { font-size: 36px; font-weight: 900; line-height: 1.15; margin-bottom: 16px; white-space: normal; }
.cd-hero-title span { color: var(--accent-orange); }
.cd-hero-sub { font-size: 14px; color: var(--text); line-height: 1.8; max-width: 520px; margin: 0 auto 28px; }
.cd-cycling { font-size: 18px; font-weight: 700; margin-bottom: 24px; min-height: 24px; letter-spacing: 0.01em; }
.cd-cycling-text { transition: opacity 0.2s; }
.cd-cursor { display: inline-block; width: 2px; height: 14px; background: var(--accent-orange); vertical-align: middle; margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.cd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
.cd-badge { font-size: 11px; font-family: var(--mono); padding: 3px 8px; border: 1px solid var(--border); border-radius: 2px; color: var(--text-muted); }
.cd-badge.green { color: #4ade80; border-color: #4ade8030; background: #4ade8008; }
.cd-badge.blue  { color: #60a5fa; border-color: #60a5fa30; background: #60a5fa08; }
.cd-badge.orange { color: var(--accent-orange); border-color: #f9731630; background: #f9731608; }

.cd-install { margin-bottom: 64px; }
.cd-install-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.cd-install-tabs { display: flex; gap: 0; margin-bottom: 0; flex-wrap: wrap; }
.cd-tab { font-size: 12px; font-family: var(--mono); padding: 7px 18px; border: 1px solid var(--border); border-bottom: none; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: 4px 4px 0 0; transition: background 0.1s, color 0.1s; margin-right: -1px; }
.cd-tab.active { background: color-mix(in srgb, Canvas 85%, CanvasText 15%); color: var(--text); border-color: var(--border); }
.cd-tab:not(.active):hover { color: var(--text); }
.cd-install-box { background: color-mix(in srgb, Canvas 85%, CanvasText 15%); border: 1px solid var(--border); border-radius: 0 4px 4px 4px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cd-install-cmd { font-family: var(--mono); font-size: 14px; color: var(--text); }
.cd-install-cmd .prompt { color: var(--text-muted); margin-right: 8px; }
.cd-copy-btn { font-size: 11px; font-family: var(--mono); color: var(--text-muted); background: none; border: 1px solid var(--border); padding: 4px 10px; border-radius: 2px; cursor: pointer; transition: color 0.1s, border-color 0.1s; white-space: nowrap; }
.cd-copy-btn:hover { color: var(--text); border-color: var(--text-muted); }
.cd-copy-btn.copied { color: #4ade80; border-color: #4ade8060; }
.cd-install-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.cd-install-note a { color: var(--link); }

.cd-demo { margin-bottom: 64px; }
.cd-demo-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.cd-terminal { background: #0d0d0d; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.cd-terminal-bar { background: #1a1a1a; padding: 10px 14px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); position: relative; }
.cd-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cd-dot.red { background: #ff5f57; }
.cd-dot.yellow { background: #febc2e; }
.cd-dot.green { background: #28c840; }
.cd-terminal-title { font-size: 12px; color: var(--text-muted); font-family: var(--mono); position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
.cd-terminal-body { padding: 20px 24px; font-family: var(--mono); font-size: 13px; line-height: 2; min-height: 280px; }
.cd-replay-btn { margin-left: auto; font-size: 10px; font-family: var(--mono); color: #555; background: none; border: 1px solid #333; padding: 2px 8px; border-radius: 2px; cursor: pointer; transition: color 0.1s, border-color 0.1s; }
.cd-replay-btn:hover { color: #999; border-color: #555; }
.cd-terminal-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); border-radius: 0 0 6px 6px; cursor: pointer; transition: opacity 0.2s; z-index: 10; }
.cd-terminal-overlay.hidden { opacity: 0; pointer-events: none; }
.cd-play-icon { display: flex; align-items: center; justify-content: center; transition: transform 0.15s, filter 0.15s; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.cd-terminal-overlay:hover .cd-play-icon { transform: scale(1.07); filter: drop-shadow(0 2px 14px rgba(0,0,0,0.7)); }
.t-cursor { display: inline-block; width: 7px; height: 13px; background: #e2e2e2; vertical-align: middle; animation: blink 1s step-end infinite; margin-left: 1px; }
.t-dim    { color: #555; }
.t-prompt { color: #555; }
.t-cmd    { color: #e2e2e2; }
.t-muted  { color: #555; }
.t-label  { color: #777; }
.t-num    { color: #febc2e; font-weight: 700; }
.t-msg    { color: #e2e2e2; }
.t-scope  { color: #60a5fa; }
.t-green  { color: #4ade80; }
.t-orange { color: #f97316; }

.cd-how { margin-bottom: 64px; }
.cd-section-title { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.cd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 32px; }
.cd-step { background: var(--bg); padding: 20px; }
.cd-step-num { font-size: 11px; font-family: var(--mono); color: var(--accent-orange); font-weight: 700; margin-bottom: 8px; }
.cd-step-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.cd-step-desc { font-size: 12px; color: var(--text-dim); line-height: 1.7; }

.cd-commands { margin-bottom: 64px; }
.cd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cd-table th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 0 0 10px; border-bottom: 1px solid var(--border); }
.cd-table td { padding: 12px 0; border-bottom: 1px dotted var(--border); vertical-align: top; }
.cd-table td:first-child { padding-right: 24px; width: 260px; }
.cd-table code { font-family: var(--mono); font-size: 12px; background: color-mix(in srgb, Canvas 85%, CanvasText 15%); border: 1px solid var(--border); padding: 2px 6px; border-radius: 2px; }
.cd-table .desc { color: var(--text-dim); }
.cd-table .once { font-size: 11px; color: var(--accent-orange); margin-left: 6px; }

.cd-stars { margin-bottom: 64px; }
.cd-stars img { width: 100%; border: 1px solid var(--border); border-radius: 4px; }

.cd-downloads { margin-bottom: 64px; }
.cd-dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.cd-dl-item { background: var(--bg); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.cd-dl-item:hover { background: color-mix(in srgb, Canvas 90%, CanvasText 10%); }
.cd-dl-name { font-size: 13px; font-family: var(--mono); }
.cd-dl-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cd-dl-link { font-size: 11px; color: var(--link); text-decoration: none; font-family: var(--mono); }
.cd-dl-link:hover { text-decoration: underline; }

.cd-security { margin-bottom: 64px; }
.cd-sec-list { display: flex; flex-direction: column; }
.cd-sec-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dotted var(--border); font-size: 13px; }
.cd-sec-item:first-child { border-top: 1px dotted var(--border); }
.cd-sec-key { color: var(--text); min-width: 180px; flex-shrink: 0; }
.cd-sec-val { color: var(--text-dim); line-height: 1.6; }

.cd-arch { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 32px; }
.cd-arch-top { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.cd-arch-top-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.cd-arch-top-files { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-arch-top-file { font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.cd-arch-connector-v { display: flex; justify-content: center; padding: 6px 0; }
.cd-arch-connector-v-line { display: flex; flex-direction: column; align-items: center; gap: 0; }
.cd-arch-connector-v-line span { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }
.cd-arch-mid { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cd-arch-mid-header { padding: 16px 24px 12px; border-bottom: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; }
.cd-arch-mid-name { font-size: 14px; font-weight: 700; }
.cd-arch-mid-meta { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }
.cd-arch-mid-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cd-arch-mid-col { padding: 16px 24px; border-right: 1px dashed var(--border); }
.cd-arch-mid-col:last-child { border-right: none; }
.cd-arch-mid-col-num { font-size: 11px; color: var(--accent-orange); font-weight: 700; margin-bottom: 6px; }
.cd-arch-mid-col-title { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.cd-arch-mid-col-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cd-arch-mid-col-tag { font-size: 10px; font-family: var(--mono); padding: 2px 6px; border: 1px solid var(--border); border-radius: 2px; color: var(--text-muted); }
.cd-arch-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); }
.cd-arch-bottom-left { padding: 20px 24px; border-right: 1px solid var(--border); }
.cd-arch-bottom-right { padding: 20px 24px; }
.cd-arch-bottom-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.cd-arch-picks { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 12px; }
.cd-arch-pick-active { color: var(--accent-orange); }
.cd-arch-pick-inactive { color: var(--text-muted); }
.cd-arch-remote-items { display: flex; flex-direction: column; gap: 8px; }
.cd-arch-remote-item { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.cd-arch-remote-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); flex-shrink: 0; box-shadow: 0 0 5px var(--accent-green); }
.cd-arch-remote-dot.skip { background: var(--text-muted); box-shadow: none; }
.cd-arch-remote-label { color: var(--text-dim); }

@media (max-width: 1080px) {
  .cd-page { padding: 0 16px 60px; }
  .cd-hero { padding: 40px 16px 32px; }
  .cd-hero-title { font-size: 22px; }
  .cd-cycling { font-size: 13px; min-height: 20px; }
  .cd-hero-sub { font-size: 13px; }
  .cd-steps { grid-template-columns: 1fr; }
  .cd-dl-grid { grid-template-columns: 1fr; }
  .cd-install-box { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cd-install-cmd { font-size: 12px; word-break: break-all; }
  .cd-terminal-body { padding: 14px 14px; font-size: 11px; overflow-x: auto; }
  .cd-table { display: block; overflow-x: auto; }
  .cd-table td:first-child { width: auto; min-width: 160px; }
  .cd-sec-item { flex-direction: column; gap: 4px; }
  .cd-sec-key { min-width: unset; }
  .cd-install-note { font-size: 11px; }
  .cd-install-note code { font-size: 10px; word-break: break-all; }
  .cd-arch-mid-cols { grid-template-columns: 1fr; }
  .cd-arch-mid-col { border-right: none; border-bottom: 1px dashed var(--border); }
  .cd-arch-mid-col:last-child { border-bottom: none; }
  .cd-arch-bottom { grid-template-columns: 1fr; }
  .cd-arch-bottom-left { border-right: none; border-bottom: 1px solid var(--border); }
}

.cd-showcase { max-width: 1080px; margin: 0 auto; padding: 0 40px 72px; }
.cd-showcase-tabs { display: flex; gap: 0; flex-wrap: wrap; }
.cd-showcase-tab {
  font-size: 12px; font-family: var(--mono); padding: 8px 18px;
  border: 1px solid var(--border); border-bottom: none;
  background: transparent; color: var(--text-muted);
  cursor: pointer; border-radius: 4px 4px 0 0;
  transition: background 0.1s, color 0.1s; margin-right: -1px;
}
.cd-showcase-tab:hover { color: var(--text); }
.cd-showcase-tab.active { background: #0d0d0d; color: #e2e2e2; border-color: #333; }
.cd-showcase-window { background: #0d0d0d; border: 1px solid #333; border-radius: 0 6px 6px 6px; overflow: hidden; }
.cd-showcase-bar {
  background: #1a1a1a; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #2a2a2a; position: relative;
}
.cd-showcase-bar-title { font-size: 12px; color: #555; font-family: var(--mono); position: absolute; left: 50%; transform: translateX(-50%); }
.cd-showcase-progress { margin-left: auto; width: 80px; height: 2px; background: #2a2a2a; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.cd-showcase-progress-fill { height: 100%; background: var(--accent-orange); border-radius: 2px; width: 0%; transition: width linear; }
.cd-showcase-body {
  padding: 28px 32px; font-family: var(--mono); font-size: 13px;
  line-height: 2; min-height: 520px; color: #e2e2e2;
  overflow-x: auto;
}
.cd-showcase-body .s-prompt { color: #555; }
.cd-showcase-body .s-cmd { color: #e2e2e2; font-weight: 700; }
.cd-showcase-body .s-dim { color: #444; }
.cd-showcase-body .s-muted { color: #555; }
.cd-showcase-body .s-label { color: #777; }
.cd-showcase-body .s-num { color: #febc2e; font-weight: 700; }
.cd-showcase-body .s-green { color: #4ade80; }
.cd-showcase-body .s-blue { color: #60a5fa; }
.cd-showcase-body .s-orange { color: #f97316; }
.cd-showcase-body .s-selected { color: #febc2e; }
.cd-showcase-body .s-blank { display: block; line-height: 1; }

@media (max-width: 1080px) {
  .cd-showcase { padding: 0 16px 48px; }
  .cd-showcase-body { padding: 16px; font-size: 11px; min-height: 300px; }
  .cd-showcase-tab { font-size: 10px; padding: 6px 10px; }
}

.cd-hero-install {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); padding: 10px 16px;
  border-radius: 3px; margin-bottom: 12px;
  background: color-mix(in srgb, Canvas 92%, CanvasText 8%);
}
.cd-hero-prompt { color: var(--text-muted); font-size: 13px; }
.cd-hero-cmd { font-size: 13px; color: var(--text); }
.cd-hero-copy {
  font-size: 11px; font-family: var(--mono); color: var(--text-muted);
  background: none; border: 1px solid var(--border); padding: 3px 10px;
  border-radius: 2px; cursor: pointer; transition: color 0.1s, border-color 0.1s;
}
.cd-hero-copy:hover { color: var(--text); border-color: var(--text-muted); }
.cd-hero-copy.copied { color: #4ade80; border-color: #4ade8060; }
.cd-hero-meta { font-size: 12px; color: var(--text-muted); }
.cd-hero-meta a { color: var(--text-muted); text-decoration: underline; }

.cd-cmds { margin: 0 auto 64px; }
.cd-cmds-grid {
  display: grid; grid-template-columns: auto 1fr;
  border: 1px solid var(--border); border-radius: 3px; overflow: hidden;
}
.cd-cmds-key {
  font-size: 12px; font-family: var(--mono); padding: 11px 20px;
  border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
  background: color-mix(in srgb, Canvas 94%, CanvasText 6%);
  white-space: nowrap; color: var(--text);
}
.cd-cmds-val {
  font-size: 12px; padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim); line-height: 1.5;
}
.cd-cmds-key:last-of-type, .cd-cmds-val:last-child { border-bottom: none; }
.cd-cmds-divider {
  grid-column: 1 / -1; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  padding: 8px 20px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, Canvas 96%, CanvasText 4%);
}

.cd-bottom-note {
  font-size: 12px; color: var(--text-muted);
  padding-bottom: 64px; display: flex; gap: 20px; flex-wrap: wrap;
}
.cd-bottom-note a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 700px) {
  .cd-hero-install { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cd-hero-cmd { font-size: 11px; word-break: break-all; }
  .cd-cmds-grid { grid-template-columns: 1fr; }
  .cd-cmds-key { border-right: none; border-bottom: none; padding-bottom: 2px; }
  .cd-cmds-val { padding-top: 2px; }
}


.cd-hero-os-tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 0; }
.cd-hero-os-tab {
  font-size: 11px; font-family: var(--mono); padding: 5px 14px;
  border: 1px solid var(--border); border-bottom: none;
  background: transparent; color: var(--text);
  cursor: pointer; margin-right: -1px;
  border-radius: 3px 3px 0 0; transition: color 0.1s;
}
.cd-hero-os-tab:hover { color: var(--text); }
.cd-hero-os-tab.active {
  background: color-mix(in srgb, Canvas 92%, CanvasText 8%);
  color: var(--text); border-color: var(--border);
}
.cd-hero-install { border-radius: 0 3px 3px 3px; }

.cd-showcase-window { background: #fff; border-color: #e0e0e0; }
.cd-showcase-bar { background: #f0f0f0; border-bottom-color: #e0e0e0; }
.cd-showcase-bar-title { color: #aaa; }
.cd-showcase-progress { background: #ddd; }
.cd-showcase-progress-fill { background: #666; }
.cd-showcase-body { color: #111; }
.cd-showcase-body .s-prompt { color: #bbb; }
.cd-showcase-body .s-cmd { color: #111; font-weight: 700; }
.cd-showcase-body .s-muted { color: #888; }
.cd-showcase-body .s-label { color: #555; }
.cd-showcase-body .s-dim { color: #ccc; }
.cd-showcase-body .s-green { color: #16a34a; }
.cd-showcase-body .s-orange { color: #ea580c; }
.cd-showcase-body .s-selected { color: #d97706; }
.cd-showcase-body .s-blue { color: #2563eb; }

@media (prefers-color-scheme: dark) {
  .cd-showcase-window { background: #0d0d0d; border-color: #2a2a2a; }
  .cd-showcase-bar { background: #1a1a1a; border-bottom-color: #2a2a2a; }
  .cd-showcase-bar-title { color: #555; }
  .cd-showcase-progress { background: #2a2a2a; }
  .cd-showcase-progress-fill { background: var(--accent-orange); }
  .cd-showcase-body { color: #e2e2e2; }
  .cd-showcase-body .s-prompt { color: #555; }
  .cd-showcase-body .s-cmd { color: #e2e2e2; font-weight: 700; }
  .cd-showcase-body .s-muted { color: #555; }
  .cd-showcase-body .s-label { color: #777; }
  .cd-showcase-body .s-dim { color: #444; }
  .cd-showcase-body .s-green { color: #4ade80; }
  .cd-showcase-body .s-orange { color: #f97316; }
  .cd-showcase-body .s-selected { color: #febc2e; }
  .cd-showcase-body .s-blue { color: #60a5fa; }
}

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: none; background: none;
  color: var(--text); cursor: pointer;
  opacity: 0.8; transition: opacity 0.15s;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111111; --text: #e8e8e8;
  --text-dim: #aaa; --text-muted: #666; --border: #333; --link: #5aabce;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --text: #111111;
  --text-dim: #666; --text-muted: #999; --border: #d0cec8; --link: #2a7fa5;
}
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

[data-theme="dark"] .cd-showcase-window { background: #0d0d0d; border-color: #2a2a2a; }
[data-theme="dark"] .cd-showcase-bar { background: #1a1a1a; border-bottom-color: #2a2a2a; }
[data-theme="dark"] .cd-showcase-bar-title { color: #555; }
[data-theme="dark"] .cd-showcase-progress { background: #2a2a2a; }
[data-theme="dark"] .cd-showcase-progress-fill { background: var(--accent-orange); }
[data-theme="dark"] .cd-showcase-body { color: #e2e2e2; }
[data-theme="dark"] .cd-showcase-body .s-prompt { color: #555; }
[data-theme="dark"] .cd-showcase-body .s-cmd { color: #e2e2e2; }
[data-theme="dark"] .cd-showcase-body .s-muted { color: #555; }
[data-theme="dark"] .cd-showcase-body .s-label { color: #777; }
[data-theme="dark"] .cd-showcase-body .s-dim { color: #444; }
[data-theme="dark"] .cd-showcase-body .s-green { color: #4ade80; }
[data-theme="dark"] .cd-showcase-body .s-orange { color: #f97316; }
[data-theme="dark"] .cd-showcase-body .s-selected { color: #febc2e; }
[data-theme="dark"] .cd-showcase-body .s-blue { color: #60a5fa; }

[data-theme="light"] .cd-showcase-window { background: #fff; border-color: #e0e0e0; }
[data-theme="light"] .cd-showcase-bar { background: #f0f0f0; border-bottom-color: #e0e0e0; }
[data-theme="light"] .cd-showcase-bar-title { color: #aaa; }
[data-theme="light"] .cd-showcase-progress { background: #ddd; }
[data-theme="light"] .cd-showcase-progress-fill { background: #666; }
[data-theme="light"] .cd-showcase-body { color: #111; }
[data-theme="light"] .cd-showcase-body .s-prompt { color: #bbb; }
[data-theme="light"] .cd-showcase-body .s-cmd { color: #111; }
[data-theme="light"] .cd-showcase-body .s-muted { color: #888; }
[data-theme="light"] .cd-showcase-body .s-green { color: #16a34a; }
[data-theme="light"] .cd-showcase-body .s-orange { color: #ea580c; }
[data-theme="light"] .cd-showcase-body .s-selected { color: #d97706; }

.blog-layout { max-width: 1080px; margin: 0 auto; padding: 48px 40px 80px; }
    .blog-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
    .blog-header-left { border-left: 3px solid var(--accent-orange); padding-left: 18px; }
    .blog-header-left h1 { font-size: 15px; font-weight: 700; }
    .blog-header-left p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
    .blog-rss { font-size: 12px; color: var(--text-muted); text-decoration: none; }
    .blog-rss:hover { color: var(--text); text-decoration: none; }
    .blog-filters { display: flex; align-items: center; gap: 0; margin-bottom: 8px; font-size: 13px; }
    .blog-filter { color: var(--text-muted); text-decoration: none; padding: 4px 10px; border-radius: 2px; transition: color 0.1s; cursor: pointer; }
    .blog-filter:hover { color: var(--text); text-decoration: none; }
    .blog-filter.active { color: var(--text); background: color-mix(in srgb, Canvas 85%, CanvasText 15%); font-weight: 600; }
    .blog-filter-sep { color: var(--border); }
    .blog-list { margin-top: 4px; }
    .blog-sep { border: none; border-top: 1px dotted var(--border); margin: 0; }
    .blog-post-item { padding: 28px 0; }
    .blog-post-item:last-child { padding-bottom: 0; }
    .blog-post-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
    .blog-post-title a { color: var(--text); text-decoration: none; }
    .blog-post-title a:hover { text-decoration: underline; }
    .blog-tag { font-size: 11px; color: var(--accent-orange); font-weight: 600; margin-left: 8px; letter-spacing: 0.03em; }
    .blog-post-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
    .blog-post-meta .meta-sep { margin: 0 6px; }
    .blog-post-excerpt { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
    .blog-post-excerpt a { color: var(--link); font-size: 12px; margin-left: 6px; text-decoration: none; }
    .blog-post-excerpt a:hover { text-decoration: underline; }
    .blog-empty { padding: 40px 0; font-size: 13px; color: var(--text-muted); line-height: 2; }
    .footer-outer { padding: 0 40px 60px; max-width: 1080px; margin: 0 auto; }
    .footer-cols { grid-template-columns: repeat(4, 1fr); }
    @media (max-width: 600px) {
      .blog-layout { padding: 32px 16px 60px; }
      .blog-header { flex-direction: column; gap: 12px; }
      .footer-outer { padding: 0 16px 40px; }
      .footer-cols { grid-template-columns: repeat(2, 1fr); }
      .footer-col { border-right: 1px dashed var(--border); border-top: 1px dashed var(--border); }
      .footer-col:nth-child(2n) { border-right: none; }
      .footer-col:first-child, .footer-col:nth-child(2) { border-top: none; }}

.cd-showcase-window { border-radius: 12px !important; }

.cd-showcase-prompt-bar {
  display: flex; align-items: stretch;
  font-size: 11px; font-family: var(--mono);
  border-bottom: 1px solid #e0e0e0;
  background: #f0f0f0; line-height: 1;
  padding-right: 14px;
}
.cd-pbar-seg {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; white-space: nowrap;
}
.cd-pbar-user   { background: #ddd; color: #444; }
.cd-pbar-path   { background: #e8a84a; color: #fff; }
.cd-pbar-branch { background: #72b262; color: #fff; }
.cd-pbar-time   { margin-left: auto; font-size: 10px; color: #bbb; padding: 6px 0; align-self: center; }

.cd-showcase-window { box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 10px rgba(0,0,0,0.05); }
.cd-hero-install    { box-shadow: 0 2px 10px rgba(0,0,0,0.07); }

.cd-hero-install {
  display: flex !important;
  width: min(560px, 100%);
  margin-left: auto; margin-right: auto;
}
.cd-hero-cmd { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-hero-os-tabs { justify-content: center; }

.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.cd-showcase-window           { background: #fff; border-color: #e0e0e0; }
.cd-showcase-bar              { background: #f0f0f0; border-bottom-color: #e0e0e0; }
.cd-showcase-bar-title        { color: #aaa; }
.cd-showcase-progress         { background: #ddd; }
.cd-showcase-progress-fill    { background: #666; }
.cd-showcase-body             { color: #111; }
.cd-showcase-body .s-prompt   { color: #bbb; }
.cd-showcase-body .s-cmd      { color: #111; font-weight: 700; }
.cd-showcase-body .s-muted    { color: #888; }
.cd-showcase-body .s-label    { color: #555; }
.cd-showcase-body .s-dim      { color: #ccc; }
.cd-showcase-body .s-green    { color: #16a34a; }
.cd-showcase-body .s-orange   { color: #ea580c; }
.cd-showcase-body .s-selected { color: #d97706; }
.cd-showcase-body .s-blue     { color: #2563eb; }

@media (prefers-color-scheme: dark) {
  .cd-showcase-window           { background: #0d0d0d; border-color: #2a2a2a; box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.35); }
  .cd-showcase-bar              { background: #1a1a1a; border-bottom-color: #2a2a2a; }
  .cd-showcase-bar-title        { color: #555; }
  .cd-showcase-progress         { background: #2a2a2a; }
  .cd-showcase-progress-fill    { background: var(--accent-orange); }
  .cd-showcase-body             { color: #e2e2e2; }
  .cd-showcase-body .s-prompt   { color: #555; }
  .cd-showcase-body .s-cmd      { color: #e2e2e2; font-weight: 700; }
  .cd-showcase-body .s-muted    { color: #555; }
  .cd-showcase-body .s-label    { color: #777; }
  .cd-showcase-body .s-dim      { color: #444; }
  .cd-showcase-body .s-green    { color: #4ade80; }
  .cd-showcase-body .s-orange   { color: #f97316; }
  .cd-showcase-body .s-selected { color: #febc2e; }
  .cd-showcase-body .s-blue     { color: #60a5fa; }
  .cd-showcase-prompt-bar { background: #1e1e1e; border-bottom-color: #2a2a2a; }
  .cd-pbar-user   { background: #2d2d2d; color: #ccc; }
  .cd-pbar-path   { background: #b5762a; color: #fff; }
  .cd-pbar-branch { background: #3d7a3d; color: #e0ffe0; }
  .cd-pbar-time   { color: #555; }
  .cd-hero-install { box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
}

[data-theme="light"] .cd-showcase-window           { background: #fff; border-color: #e0e0e0; box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 10px rgba(0,0,0,0.05); }
[data-theme="light"] .cd-showcase-bar              { background: #f0f0f0; border-bottom-color: #e0e0e0; }
[data-theme="light"] .cd-showcase-bar-title        { color: #aaa; }
[data-theme="light"] .cd-showcase-progress         { background: #ddd; }
[data-theme="light"] .cd-showcase-progress-fill    { background: #666; }
[data-theme="light"] .cd-showcase-body             { color: #111; }
[data-theme="light"] .cd-showcase-body .s-prompt   { color: #bbb; }
[data-theme="light"] .cd-showcase-body .s-cmd      { color: #111; font-weight: 700; }
[data-theme="light"] .cd-showcase-body .s-muted    { color: #888; }
[data-theme="light"] .cd-showcase-body .s-green    { color: #16a34a; }
[data-theme="light"] .cd-showcase-body .s-orange   { color: #ea580c; }
[data-theme="light"] .cd-showcase-body .s-selected { color: #d97706; }
[data-theme="light"] .cd-showcase-prompt-bar { background: #f0f0f0; border-bottom-color: #e0e0e0; }
[data-theme="light"] .cd-pbar-user   { background: #ddd; color: #444; }
[data-theme="light"] .cd-pbar-path   { background: #e8a84a; color: #fff; }
[data-theme="light"] .cd-pbar-branch { background: #72b262; color: #fff; }
[data-theme="light"] .cd-pbar-time   { color: #bbb; }
[data-theme="light"] .cd-hero-install { box-shadow: 0 2px 10px rgba(0,0,0,0.07); }

[data-theme="dark"] .cd-showcase-window           { background: #0d0d0d; border-color: #2a2a2a; box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.35); }
[data-theme="dark"] .cd-showcase-bar              { background: #1a1a1a; border-bottom-color: #2a2a2a; }
[data-theme="dark"] .cd-showcase-bar-title        { color: #555; }
[data-theme="dark"] .cd-showcase-progress         { background: #2a2a2a; }
[data-theme="dark"] .cd-showcase-progress-fill    { background: var(--accent-orange); }
[data-theme="dark"] .cd-showcase-body             { color: #e2e2e2; }
[data-theme="dark"] .cd-showcase-body .s-prompt   { color: #555; }
[data-theme="dark"] .cd-showcase-body .s-cmd      { color: #e2e2e2; font-weight: 700; }
[data-theme="dark"] .cd-showcase-body .s-muted    { color: #555; }
[data-theme="dark"] .cd-showcase-body .s-label    { color: #777; }
[data-theme="dark"] .cd-showcase-body .s-dim      { color: #444; }
[data-theme="dark"] .cd-showcase-body .s-green    { color: #4ade80; }
[data-theme="dark"] .cd-showcase-body .s-orange   { color: #f97316; }
[data-theme="dark"] .cd-showcase-body .s-selected { color: #febc2e; }
[data-theme="dark"] .cd-showcase-body .s-blue     { color: #60a5fa; }
[data-theme="dark"] .cd-showcase-prompt-bar { background: #1e1e1e; border-bottom-color: #2a2a2a; }
[data-theme="dark"] .cd-pbar-user   { background: #2d2d2d; color: #ccc; }
[data-theme="dark"] .cd-pbar-path   { background: #b5762a; color: #fff; }
[data-theme="dark"] .cd-pbar-branch { background: #3d7a3d; color: #e0ffe0; }
[data-theme="dark"] .cd-pbar-time   { color: #555; }
[data-theme="dark"] .cd-hero-install { box-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; background: none;
  color: var(--text); cursor: pointer; opacity: 0.8; transition: opacity 0.15s;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle svg { width: 16px; height: 16px; }

.cd-features { max-width: 1080px; margin: 0 auto; padding: 0 40px 72px; }
.cd-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cd-feat {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cd-feat-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.cd-feat-icon svg { width: 18px; height: 18px; }
.cd-feat-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.cd-feat-desc  { font-size: 12px; color: var(--text-dim); line-height: 1.7; }
.cd-feat-visual { margin-top: auto; padding-top: 16px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.cd-feat--wide  { grid-column: span 2; }

.cd-feat-terminal {
  background: color-mix(in srgb, var(--bg) 60%, var(--text) 4%);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.9;
  font-family: var(--mono);
  color: var(--text-dim);
}
.cd-feat-terminal .hi  { color: var(--accent-orange); font-weight: 700; }
.cd-feat-terminal .ok  { color: #16a34a; }
.cd-feat-terminal .dim { color: var(--text-muted); }

@media (prefers-color-scheme: dark) { .cd-feat-terminal .ok { color: #4ade80; } }
[data-theme="dark"] .cd-feat-terminal .ok { color: #4ade80; }

.cd-feat-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cd-feat-pill {
  font-size: 10px; font-family: var(--mono);
  padding: 3px 8px; border-radius: 2px;
  border: 1px solid var(--border); color: var(--text-muted);
}
.cd-feat-pill.green  { color: #16a34a; border-color: #16a34a40; background: #16a34a08; }
.cd-feat-pill.orange { color: var(--accent-orange); border-color: #febc2e40; background: #febc2e08; }
@media (prefers-color-scheme: dark) { .cd-feat-pill.green { color: #4ade80; border-color: #4ade8040; background: #4ade8008; } }
[data-theme="dark"] .cd-feat-pill.green { color: #4ade80; border-color: #4ade8040; background: #4ade8008; }

.cd-feat-stat       { font-size: 32px; font-weight: 900; color: var(--text); line-height: 1; margin-top: 8px; }
.cd-feat-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.cd-feat-pipe      { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cd-feat-pipe-step { display: flex; align-items: center; gap: 8px; font-size: 11px; font-family: var(--mono); color: var(--text-dim); }
.cd-feat-pipe-dot  { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--border); }
.cd-feat-pipe-dot.done { background: #16a34a; box-shadow: 0 0 4px #16a34a60; }
@media (prefers-color-scheme: dark) { .cd-feat-pipe-dot.done { background: #4ade80; box-shadow: 0 0 4px #4ade8060; } }
[data-theme="dark"] .cd-feat-pipe-dot.done { background: #4ade80; box-shadow: 0 0 4px #4ade8060; }
.cd-feat-pipe-line { width: 1px; height: 14px; background: var(--border); margin-left: 2.5px; }

@media (max-width: 900px) {
  .cd-features { padding: 0 16px 48px; }
  .cd-features-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-feat--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .cd-features-grid { grid-template-columns: 1fr; }
  .cd-feat--wide { grid-column: span 1; }
}

.cd-sec-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.cd-sec-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.cd-sec-card--wide { grid-column: span 2; }
.cd-sec-card-icon { color: var(--text-muted); }
.cd-sec-card-icon svg { width: 16px; height: 16px; }
.cd-sec-card-title { font-size: 12px; font-weight: 700; color: var(--text); }
.cd-sec-card-desc  { font-size: 12px; color: var(--text-dim); line-height: 1.7; }
.cd-sec-card-desc code {
  font-family: var(--mono); font-size: 11px;
  background: color-mix(in srgb, var(--bg) 80%, var(--text) 10%);
  border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 2px;
}
.cd-sec-card-code {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent-orange);
  background: color-mix(in srgb, var(--bg) 80%, var(--text) 5%);
  border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 4px;
  margin-top: 4px;
}
.cd-sec-card-stat {
  font-size: 28px; font-weight: 900;
  color: var(--text); line-height: 1; margin-top: auto; padding-top: 12px;
}

@media (max-width: 700px) {
  .cd-sec-bento { grid-template-columns: 1fr; }
  .cd-sec-card--wide { grid-column: span 1; }
}

.cd-bottom-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 32px;
  text-align: center;
}
.cd-bottom-meta {
  font-size: 12px; color: var(--text-muted);
}
.cd-bottom-actions {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.cd-bottom-btn {
  font-size: 11px; font-family: var(--mono);
  color: var(--text-dim); text-decoration: none;
  border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 2px;
  transition: color 0.1s, border-color 0.1s;
}
.cd-bottom-btn:hover {
  color: var(--text); border-color: var(--text-muted);
  text-decoration: none;
}
.github-star-badge {
  display: flex; align-items: center; gap: 5px;
  color: var(--text); text-decoration: none;
  border: 0.1px solid var(--border);
  padding: 4px 10px; border-radius: 2px;
  font-size: 12px; font-family: var(--mono);
  transition: color 0.15s, border-color 0.15s;
}
.github-star-badge:hover { color: var(--text); border-color: var(--text-muted); text-decoration: none; }
.github-star-count { color: var(--text); }

.cd-sec-card-btns { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 16px; }
.cd-sec-btn {
  display: block; text-align: center;
  font-size: 11px; font-family: var(--mono);
  color: var(--text-dim); text-decoration: none;
  border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 2px;
  transition: color 0.1s, border-color 0.1s, background 0.1s;
}
.cd-sec-btn:hover {
  color: var(--text); border-color: var(--text-muted);
  background: color-mix(in srgb, var(--bg) 90%, var(--text) 10%);
  text-decoration: none;
}
.gh-link {
  display: flex; align-items: center;
  text-decoration: none; border: none; background: none;
  color: #000000;
  opacity: 0.8; transition: opacity 0.15s;
}
.gh-link:hover { opacity: 1; text-decoration: none; }
.gh-icon { display: block; }

@media (prefers-color-scheme: dark) {
  .gh-link { color: #ffffff; }
}
[data-theme="dark"]  .gh-link { color: #ffffff; }
[data-theme="light"] .gh-link { color: #000000; }

.github-link { display: none; }
.github-star-badge { display: none; }

.cd-showcase-window { box-shadow: none !important; }

.cd-showcase-window,
[data-theme="light"] .cd-showcase-window { background: #f5f4f0 !important; border-color: #e2e0db !important; }
.cd-showcase-bar,
[data-theme="light"] .cd-showcase-bar { background: #eae8e3 !important; border-bottom-color: #d8d5cf !important; }

.cd-showcase-body .s-muted,
[data-theme="light"] .cd-showcase-body .s-muted { color: #777 !important; }
.cd-showcase-body .s-dim,
[data-theme="light"] .cd-showcase-body .s-dim   { color: #999 !important; }
.cd-showcase-body .s-prompt,
[data-theme="light"] .cd-showcase-body .s-prompt { color: #aaa !important; }

[data-theme="dark"] .cd-showcase-window { background: #1c1c1c !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .cd-showcase-bar { background: #242424 !important; border-bottom-color: #303030 !important; }
[data-theme="dark"] .cd-showcase-body .s-muted  { color: #777 !important; }
[data-theme="dark"] .cd-showcase-body .s-dim    { color: #666 !important; }
[data-theme="dark"] .cd-showcase-body .s-label  { color: #999 !important; }
[data-theme="dark"] .cd-showcase-body .s-prompt { color: #666 !important; }

@media (prefers-color-scheme: dark) {
  .cd-showcase-window { background: #1c1c1c !important; border-color: #2e2e2e !important; box-shadow: none !important; }
  .cd-showcase-bar    { background: #242424 !important; border-bottom-color: #303030 !important; }
  .cd-showcase-body .s-muted  { color: #777 !important; }
  .cd-showcase-body .s-dim    { color: #666 !important; }
  .cd-showcase-body .s-label  { color: #999 !important; }
  .cd-showcase-body .s-prompt { color: #666 !important; }
}

.cd-compat {
  max-width: 1080px; margin: 0 auto; padding: 0 35px 45px;
  text-align: center;
}
.cd-compat-label {
  font-size: 15px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text); margin-bottom: 28px;
}
.cd-compat-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.cd-compat-logo {
  display: flex; align-items: center;
  opacity: 0.95; transition: opacity 0.2s;
}
.cd-compat-logo:hover { opacity: 1; }
.cd-compat-logo svg { display: block; }

@media (max-width: 700px) {
  .cd-compat { padding: 0 14px 45px; }
  .cd-compat-logos { gap: 28px; }
}