/* Brand tokens — matched to docs.patentclient.com */
:root {
  color-scheme: light dark;

  --cobalt:    #2a5fdf;          /* match the wordmark's actual cobalt */
  --cobalt-deep: #1e44a8;
  --cyan:      #19c6d6;
  --navy:      #0b2756;
  --navy-deep: #06183a;

  --bg:           #ffffff;
  --bg-soft:      #f7f9fc;
  --bg-sunken:    #eef2f8;
  --bg-hero:      radial-gradient(ellipse 1100px 600px at 50% 0%, #eaf0fb 0%, #ffffff 70%);
  --border:       #e4e9f0;
  --border-strong:#d4dbe6;
  --text:         #0d1530;
  --text-muted:   #5b6781;
  --link:         var(--cobalt);
  --code-bg:      #f4f6fb;
  --code-text:    var(--navy);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 48, 0.04);
  --shadow:    0 1px 3px rgba(13, 21, 48, 0.06), 0 4px 12px rgba(13, 21, 48, 0.04);
  --shadow-lg: 0 1px 3px rgba(13, 21, 48, 0.06), 0 8px 32px rgba(13, 21, 48, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --cobalt:    #6c93ec;
    --cobalt-deep: #4f7ce0;
    --bg:           hsl(220, 30%, 8%);
    --bg-soft:      hsl(220, 28%, 11%);
    --bg-sunken:    hsl(220, 28%, 7%);
    --bg-hero:      radial-gradient(ellipse 1100px 600px at 50% 0%, hsl(220, 35%, 14%) 0%, hsl(220, 30%, 8%) 70%);
    --border:       hsl(220, 16%, 18%);
    --border-strong:hsl(220, 16%, 24%);
    --text:         #e8edf7;
    --text-muted:   #92a0bf;
    --link:         var(--cobalt);
    --code-bg:      hsl(220, 28%, 13%);
    --code-text:    var(--cobalt);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow:    0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ────────────────────── Header ────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-header__brand img {
  height: 36px;
  width: auto;
  display: block;
}
@media (prefers-color-scheme: dark) {
  /* The wordmark PNG is cobalt-on-transparent; in dark mode let it
     keep its color but lift it a touch. */
  .site-header__brand img { filter: brightness(1.4) saturate(0.9); }
}
.site-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.94rem;
  font-weight: 500;
}
.site-header__nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms ease;
}
.site-header__nav a:hover { color: var(--text); }
.site-header__nav a.cta {
  color: #fff;
  background: var(--cobalt);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  transition: background 120ms ease;
}
.site-header__nav a.cta:hover { background: var(--cobalt-deep); }

@media (max-width: 640px) {
  .site-header__nav a:not(.cta) { display: none; }
}

/* ────────────────────── Sections ────────────────────── */
.section {
  padding: 6rem 1.5rem;
}
.section + .section {
  padding-top: 6rem;
}
.section--hero {
  background: var(--bg-hero);
  padding: 6rem 1.5rem 5.5rem;
}
.section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.container {
  max-width: 1120px;
  margin: 0 auto;
}
.container--narrow {
  max-width: 780px;
  margin: 0 auto;
}

/* ────────────────────── Type ────────────────────── */
h1, h2, h3 {
  color: var(--text);
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 0;
}
.hero h1 {
  font-size: clamp(2.6rem, 4vw + 0.8rem, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  max-width: 16ch;
  background: linear-gradient(180deg, var(--text) 30%, var(--navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .hero h1 {
    background: linear-gradient(180deg, #ffffff 30%, #b9c8e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero .lede {
  font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 36rem;
}
.section h2 {
  font-size: clamp(1.75rem, 1.8vw + 0.9rem, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.section h2 + .section-lede {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 3rem;
  max-width: 42rem;
}
.section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
p { margin: 0.75rem 0; line-height: 1.65; }
a {
  color: var(--link);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--cobalt-deep); }
.muted { color: var(--text-muted); }
strong { font-weight: 600; color: var(--text); }

/* eyebrow label */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 0.85rem;
}

/* ────────────────────── Buttons ────────────────────── */
.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cobalt);
  color: #fff;
  border: 1px solid var(--cobalt);
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 1px 2px rgba(42, 95, 223, 0.18);
}
.button:hover {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 95, 223, 0.22);
}
.button.secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover {
  background: var(--bg-soft);
  border-color: var(--text-muted);
  color: var(--text);
  box-shadow: var(--shadow);
}
.button.ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: 0.78rem 0.6rem;
  box-shadow: none;
}
.button.ghost:hover {
  color: var(--cobalt);
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}
.arrow {
  transition: transform 120ms ease;
  display: inline-block;
}
.button:hover .arrow { transform: translateX(2px); }

/* ────────────────────── Hero numbers strip ────────────────────── */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.numbers .n {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.numbers .n:last-child { border-right: none; }
.numbers .n strong {
  font-size: clamp(1.9rem, 1.5vw + 1rem, 2.4rem);
  color: var(--cobalt);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.numbers .n span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .numbers { grid-template-columns: 1fr; }
  .numbers .n { border-right: none; border-bottom: 1px solid var(--border); }
  .numbers .n:last-child { border-bottom: none; }
}

/* ────────────────────── Prompt grid ────────────────────── */
.prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 720px) {
  .prompts { grid-template-columns: 1fr; }
}
.prompt {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.25rem 2.6rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.prompt:hover {
  border-color: var(--cobalt);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.prompt::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 1.05rem;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a5fdf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
@media (prefers-color-scheme: dark) {
  .prompt::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c93ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>");
  }
}

/* ────────────────────── Coverage table ────────────────────── */
.coverage-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.coverage {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.coverage th,
.coverage td {
  text-align: left;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.coverage tr:last-child td { border-bottom: none; }
.coverage th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.coverage td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  width: 1%;
  padding-right: 1.5rem;
}
.coverage td:first-child .src { color: var(--cobalt); }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(42, 95, 223, 0.1);
  color: var(--cobalt);
  margin-left: 0.4rem;
  vertical-align: middle;
}
.badge.muted-badge {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

/* ────────────────────── Cards ────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card .card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(42, 95, 223, 0.1);
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.card .card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0; }
.card .label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cobalt);
  margin: 0 0 0.1rem;
}
.card > p { margin: 0.2rem 0 0.6rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.card pre {
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-x: auto;
  margin: 0.4rem 0 0;
}
.card a.card-cta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-weight: 500;
  color: var(--cobalt);
  font-size: 0.93rem;
}
.card a.card-cta::after {
  content: " →";
  transition: transform 120ms ease;
  display: inline-block;
}
.card a.card-cta:hover::after { transform: translateX(2px); }

/* ────────────────────── Code & quote ────────────────────── */
code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}
pre {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
pre code { background: transparent; padding: 0; color: inherit; }

.pull-quote {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
  border-left: 3px solid var(--cobalt);
  padding: 0.6rem 1.5rem;
  margin: 2rem 0 0;
  max-width: 42rem;
}

/* ────────────────────── Architecture ────────────────────── */
.arch {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.arch .mermaid {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: transparent;
  margin: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}
.arch .mermaid:not([data-processed="true"]) {
  /* Hide the raw mermaid source while it's being processed so we
     don't flash unreadable text on slow connections. */
  visibility: hidden;
  min-height: 320px;
}
.arch .mermaid svg {
  max-width: 100%;
  height: auto;
  display: block;
}
.arch-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1.25rem 0 0;
}

/* ────────────────────── Feature list ────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 720px) {
  .feature-list { grid-template-columns: 1fr; }
}
.feature-list li {
  position: relative;
  padding-left: 2rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(42, 95, 223, 0.12);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a5fdf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}
@media (prefers-color-scheme: dark) {
  .feature-list li::before {
    background-color: rgba(108, 147, 236, 0.15);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c93ec' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  }
}
.feature-list .feature-title {
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}
.feature-list .feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ────────────────────── CTA banner ────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 {
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.2;
  max-width: 28rem;
  letter-spacing: -0.02em;
}
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0.4rem 0 0; max-width: 36rem; }
.cta-banner .button {
  background: #fff;
  color: var(--cobalt);
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.cta-banner .button:hover {
  background: #f0f4ff;
  color: var(--cobalt-deep);
  border-color: #f0f4ff;
}
.cta-banner .button.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: none;
}
.cta-banner .button.secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

/* ────────────────────── Footer ────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3rem 1.5rem 2.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
footer .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  align-items: center;
}
footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
footer .footer-brand img { height: 24px; width: auto; opacity: 0.85; }
footer .spacer { flex: 1; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--link); }
footer .copy { font-size: 0.85rem; }
