/* ─────────────────────────────────────────────────────────────────
   specialists.css — For Data Specialists page.
   ───────────────────────────────────────────────────────────────── */

/* ── Hero ───────────────────────────────────────────────────── */

.tm-spec-hero {
  padding: 200px 0 96px;
  text-align: center;
  background: var(--ground);
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .tm-spec-hero { padding-top: 140px; } }
.tm-spec-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11,15,20,0.08) 1px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}
.tm-spec-hero > .tm-container { position: relative; z-index: 1; }
.tm-spec-h1 {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--ink);
  text-wrap: balance;
}
.tm-spec-h1-em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.tm-spec-sub {
  margin: 28px auto 0;
  max-width: 62ch;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.tm-spec-stat {
  margin: 16px auto 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.tm-spec-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}
.tm-spec-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.tm-spec-hero-link:hover { color: var(--ink); }
.tm-spec-hero-link i { font-size: 13px; }

/* ── Section base ───────────────────────────────────────────── */

.tm-spec-section {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
}
.tm-spec-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.tm-spec-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.tm-spec-section-sub {
  margin: 16px auto 0;
  max-width: 56ch;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* ── Capabilities (4-up cards) ──────────────────────────────── */

.tm-spec-caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .tm-spec-caps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .tm-spec-caps-grid { grid-template-columns: 1fr; } }
.tm-spec-cap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tm-spec-cap-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.tm-spec-cap-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tm-spec-cap-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Architecture: Bronze → Silver → Gold ───────────────────── */

.tm-spec-arch { background: color-mix(in oklab, var(--ink) 3%, var(--surface)); border-top-color: var(--rule); }
.tm-arch-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .tm-arch-flow { grid-template-columns: 1fr; gap: 16px; }
  .tm-arch-arrow { transform: rotate(90deg); }
}
.tm-arch-layer {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.tm-arch-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #b45309;       /* bronze */
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: max-content;
}
.tm-arch-layer.is-silver .tm-arch-tag { background: #6b7280; }
.tm-arch-layer.is-gold   .tm-arch-tag { background: #ca8a04; }
.tm-arch-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tm-arch-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.tm-arch-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  padding: 0 6px;
}

/* ── SQL card ───────────────────────────────────────────────── */

.tm-sql-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 24px 60px -30px rgba(11, 15, 20, 0.18);
}
.tm-sql-prompt {
  padding: 24px 28px;
  background: color-mix(in oklab, var(--accent) 4%, var(--surface));
  border-bottom: 1px solid var(--rule);
}
.tm-sql-prompt-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.tm-sql-prompt p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tm-sql-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  color: var(--accent);
  background: var(--surface);
  font-size: 22px;
}
.tm-sql-code {
  background: #0b0f14;
  color: #d6deeb;
}
.tm-sql-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #11151c;
}
.tm-sql-code-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.tm-sql-code-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-mint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tm-sql-code-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--brand-mint);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-mint) 30%, transparent);
}
.tm-sql-code-body {
  margin: 0;
  padding: 16px 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.tm-sql-line {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 0 20px 0 0;
}
.tm-sql-line-num {
  text-align: right;
  color: rgba(255,255,255,0.32);
  user-select: none;
  padding-left: 4px;
}
.tm-sql-line code { white-space: pre; color: #d6deeb; }

/* Syntax tokens */
.sql-kw  { color: #c792ea; font-weight: 600; }
.sql-str { color: #ecc48d; }
.sql-num { color: #f78c6c; }
.sql-cmt { color: rgba(255,255,255,0.4); font-style: italic; }

/* ── Integrations ───────────────────────────────────────────── */

.tm-spec-integ { background: color-mix(in oklab, var(--ink) 3%, var(--surface)); }
.tm-integ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .tm-integ-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .tm-integ-grid { grid-template-columns: 1fr; } }
.tm-integ-col {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 22px 24px;
}
.tm-integ-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tm-integ-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tm-integ-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  border: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

/* ── Specs ──────────────────────────────────────────────────── */

.tm-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .tm-specs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tm-specs-grid { grid-template-columns: 1fr; } }
.tm-specs-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tm-specs-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.tm-specs-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tm-specs-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Final CTA ──────────────────────────────────────────────── */

.tm-spec-finalcta {
  padding: 120px 0;
  background: var(--brand-ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tm-spec-finalcta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 80%, color-mix(in oklab, var(--brand-blue) 60%, transparent) 0 110px, transparent 112px),
    radial-gradient(circle at 88% 22%, color-mix(in oklab, var(--brand-mint) 60%, transparent) 0 90px, transparent 92px);
  opacity: 0.18;
}
.tm-spec-finalcta > .tm-container { position: relative; z-index: 1; }
.tm-spec-cta-h2 {
  margin: 0 auto;
  max-width: 28ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.tm-spec-cta-sub {
  margin: 18px auto 0;
  max-width: 50ch;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}
.tm-spec-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}
.tm-spec-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.tm-spec-cta-link:hover { color: #fff; }
.tm-spec-cta-link i { font-size: 13px; }
.tm-spec-finalcta .tm-btn-dark {
  background: #fff;
  color: var(--brand-ink);
}
.tm-spec-finalcta .tm-btn-dark:hover { background: var(--brand-mint); }
.tm-spec-finalcta .tm-btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.tm-spec-finalcta .tm-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}
