/* dctools.dev — styles extracted from the Claude Design source (design/dctools.dev.dc.html) */

/* ---------- tokens ---------- */
:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --text: #1e2433;
  --muted: #5b6172;
  --faint: #8a90a0;
  --border: #e0e6e1;
  --border-strong: #cbd4cd;
  --accent: #15803d;
  --accent-on: #ffffff;
  --accent-soft: #e7f3ea;
  --green: #16a34a;
  --code-bg: #14161f;
  --code-text: #d7dae3;
  --code-border: #14161f;
}
:root[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #151823;
  --text: #e6e8ee;
  --muted: #9aa1b2;
  --faint: #6b7182;
  --border: #242938;
  --border-strong: #323848;
  --accent: #4cc38a;
  --accent-on: #0c1512;
  --accent-soft: #16211c;
  --green: #34c26a;
  --code-bg: #0a0c12;
  --code-text: #cdd1dc;
  --code-border: #242938;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1117;
    --surface: #151823;
    --text: #e6e8ee;
    --muted: #9aa1b2;
    --faint: #6b7182;
    --border: #242938;
    --border-strong: #323848;
    --accent: #4cc38a;
    --accent-on: #0c1512;
    --accent-soft: #16211c;
    --green: #34c26a;
    --code-bg: #0a0c12;
    --code-text: #cdd1dc;
    --code-border: #242938;
  }
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-on); }

h1, h2, h3, blockquote, .problem-lead, .oss-lead {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

.container { max-width: 1060px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- header ---------- */
.site-header {
  padding-top: 26px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); text-decoration: none; }
.glyph { width: 11px; height: 11px; background: var(--accent); display: inline-block; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-link { color: var(--muted); }
.nav-link:hover { color: var(--text); text-decoration: none; }
.theme-toggle {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 4px;
  line-height: 1;
}
.theme-toggle:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    radial-gradient(900px 480px at 8% -12%, var(--accent-soft), transparent 68%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  background-position: center top;
}
.hero-inner {
  padding-top: 96px;
  padding-bottom: 88px;
  background: linear-gradient(to bottom, transparent, var(--bg) 82%);
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 17ch;
  text-wrap: pretty;
}
.lede { font-size: 18px; color: var(--muted); max-width: 56ch; margin: 0 0 36px; text-wrap: pretty; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.terminal {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 16px 22px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--code-text);
  min-width: 280px;
}
.prompt { color: #6b7182; user-select: none; }
.hero-cta { display: flex; align-items: center; gap: 14px; font-size: 14.5px; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-on);
  padding: 11px 20px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 600;
}
.btn-primary:hover { color: var(--accent-on); text-decoration: none; filter: brightness(1.08); }
.link-quiet { color: var(--muted); }
.link-quiet:hover { color: var(--text); }

/* ---------- problem ---------- */
.problem { border-bottom: 1px solid var(--border); }
.problem-grid {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: start;
}
.problem-lead { font-size: 23px; line-height: 1.45; margin: 0 0 16px; text-wrap: pretty; }
.problem-copy { color: var(--muted); margin: 0; max-width: 52ch; text-wrap: pretty; }
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}
.compare-col { padding: 18px 20px; }
.compare-col-bad { border-right: 1px solid var(--border); }
.compare-col-good { background: var(--accent-soft); }
.compare-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 10px;
}
.compare-label-good { color: var(--accent); }
.compare ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 7px; }
.compare-col-bad ul { color: var(--muted); }

/* ---------- what it saves ---------- */
.saves { border-bottom: 1px solid var(--border); background: var(--accent-soft); }
.saves-grid {
  padding-top: 30px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px 40px;
}
.saves-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.saves p { margin: 0; font-size: 14px; color: var(--muted); text-wrap: pretty; }

/* ---------- tools grid ---------- */
.tools { border-bottom: 1px solid var(--border); }
.tools-inner { padding-top: 72px; padding-bottom: 72px; }
.tools-inner > .eyebrow { margin-bottom: 28px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tool-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 26px 22px;
  background: var(--surface);
  color: var(--text);
}
.tool-card:hover { color: var(--text); text-decoration: none; border-color: var(--border-strong); }
.tool-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.tool-name { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 22px; font-weight: 600; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-live { background: var(--accent-soft); }
.pill-dev { background: var(--bg); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); }
.dot-faint { background: var(--faint); }
.tool-fullname {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.tool-desc { margin: 0 0 18px; color: var(--muted); text-wrap: pretty; flex: 1; }
.tool-link { font-size: 14px; color: var(--accent); font-weight: 550; margin-top: auto; }
.tool-card-ghost {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.tool-card-ghost span { font-size: 13px; color: var(--faint); text-align: center; max-width: 30ch; }

/* ---------- section shells (dct / dcg / philosophy) ---------- */
.dct { border-bottom: 1px solid var(--border); }
.dcg { border-bottom: 1px solid var(--border); background: var(--surface); }
.philosophy { border-bottom: 1px solid var(--border); }
.section-inner { padding-top: 80px; padding-bottom: 80px; }
.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.dct .section-title { max-width: 24ch; }
.dcg .section-title { max-width: 26ch; }
.section-sub { color: var(--muted); max-width: 62ch; margin: 0 0 44px; text-wrap: pretty; }
.dcg .section-sub { margin-bottom: 40px; }

/* ---------- dct in depth ---------- */
.dct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: start;
  margin-bottom: 52px;
}
.session-demo {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  padding: 22px 24px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--code-text);
  overflow-x: auto;
}
.cmd { color: #8a93f8; }
.dim { color: #6b7182; }
.session-rule { border-top: 1px solid #2a2f3f; margin: 10px 0; height: 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; }
.feature-list li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  font-size: 14.5px;
}
.feature-list li:last-child { border-bottom: 1px solid var(--border); }
.feature-name { font-weight: 600; }
.feature-desc { color: var(--muted); }
.stat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.shot figcaption { font-size: 12.5px; color: var(--faint); margin-top: 10px; }

/* ---------- dcg teaser ---------- */
.dcg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: start; }
.graph-demo {
  margin: 0;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  padding: 22px 24px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  color: var(--code-text);
  overflow-x: auto;
}
.quotes { display: grid; gap: 26px; }
.quote { margin: 0; padding-left: 18px; border-left: 2px solid var(--accent); font-size: 20px; line-height: 1.5; }
.dcg-note { font-size: 14px; color: var(--muted); }
.dcg-note .mono { font-size: 13px; }

/* ---------- philosophy ---------- */
.philosophy .eyebrow { margin-bottom: 32px; }
.tenet {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.tenet-last { border-bottom: 1px solid var(--border); }
.tenet h3 { font-size: 21px; font-weight: 500; margin: 0; }
.tenet p { margin: 0; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

/* ---------- open source ---------- */
.oss { border-bottom: 1px solid var(--border); background: var(--accent-soft); }
.oss-inner {
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px 48px;
  align-items: start;
}
.oss .eyebrow { color: var(--accent); }
.oss-lead { font-size: 23px; line-height: 1.45; margin: 0; text-wrap: pretty; }
.oss-copy { margin: 0 0 14px; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.oss-link { font-size: 14px; font-weight: 550; }

/* ---------- footer ---------- */
.site-footer {
  padding-top: 36px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .glyph { width: 10px; height: 10px; }
.footer-links { display: flex; align-items: center; gap: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .tenet { grid-template-columns: 1fr; gap: 8px; }
}
