/* Built from service-page CSS sources. Run npm run build after editing shared article styles. */

/* styles.css */
:root {
  --bg: #0a0a0a;
  --bg-1: #0e0e10;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --text-2: #b8b8b8;
  --muted: #8a8a92;
  --muted-2: #4a4a52;
  --accent: oklch(0.72 0.14 160);
  --accent-dim: oklch(0.72 0.14 160 / 0.15);
  --accent-line: oklch(0.72 0.14 160 / 0.35);
  --danger: oklch(0.65 0.18 25);
  --warn: oklch(0.78 0.14 85);
  --radius: 10px;
  --radius-sm: 6px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Geist', -apple-system, system-ui, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: 0;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,255,255,0.04), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 100%);
}

.grain {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.accent { color: var(--accent); }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* Nav */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(10,10,10,0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 18px; height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  background: var(--surface);
  position: relative;
}
.nav-logo-mark::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.workflow-mark,
.workflow-avatar {
  position: relative;
  overflow: hidden;
}
.workflow-mark::before,
.workflow-avatar::before {
  content: none;
}
.mark-node,
.mark-line {
  position: absolute;
  display: block;
  pointer-events: none;
}
.mark-node {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  z-index: 2;
}
.mark-node-a { left: 4px; top: 5px; }
.mark-node-b { right: 4px; top: 4px; }
.mark-node-c { right: 5px; bottom: 4px; }
.mark-line {
  height: 1px;
  background: var(--accent-line);
  transform-origin: left center;
  z-index: 1;
}
.mark-line-ab {
  left: 8px;
  top: 7px;
  width: 7px;
  transform: rotate(-6deg);
}
.mark-line-bc {
  right: 6px;
  top: 9px;
  width: 1px;
  height: 6px;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.nav-links a {
  padding: 7px 12px; border-radius: 6px;
  color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links .nav-cta,
.nav-links .nav-cta:visited {
  color: #062015;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.nav-links .nav-cta:hover {
  color: #03140d;
  background: oklch(0.78 0.14 160);
  border-color: oklch(0.78 0.14 160);
}

.availability {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
}
.availability .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-dim); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #062015;
  border-color: var(--accent);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

.btn-arrow {
  transition: transform .2s;
}
.btn:hover .btn-arrow { transform: translateX(2px); }

/* Section */
section { position: relative; z-index: 2; }
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 40px;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ""; display: inline-block; width: 16px; height: 1px;
  background: var(--muted);
}
.section-title {
  font-size: 40px;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.05;
  max-width: 700px;
}
.section-title .dim { color: var(--muted); }
.section-sub {
  color: var(--text-2);
  font-size: 15px;
  max-width: 420px;
  line-height: 1.55;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
}

/* Hairline divider */
.hair { height: 1px; background: var(--border); width: 100%; }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section-title { font-size: 30px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}


/* blog-article.css */
.article-page {
  background: var(--bg);
  color: var(--text);
}
.article-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.article-nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.article-back:hover {
  color: var(--text);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.article-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.article-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 20px 96px;
}
.blog-index-shell {
  max-width: 1200px;
}
.blog-index-hero {
  max-width: 900px;
}
.blog-index-list {
  margin-top: 18px;
}
.blog-index-list .blog-title {
  font-size: 18px;
}
.article-kicker {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article-title {
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  letter-spacing: 0;
  max-width: 900px;
  margin-bottom: 24px;
}
.article-deck {
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.65;
  max-width: 760px;
  margin-bottom: 28px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.article-pill {
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
}
.article-hero-img,
.article-figure img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.article-hero-img.is-zoomable,
.article-figure img.is-zoomable {
  cursor: zoom-in;
}
.article-hero-img.is-zoomable:focus-visible,
.article-figure img.is-zoomable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.article-hero-img { margin-bottom: 52px; }
.article-content {
  max-width: 780px;
  margin: 0 auto;
}
.article-content h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 56px 0 16px;
}
.article-content h3 {
  font-size: 20px;
  margin: 32px 0 12px;
}
.article-content p,
.article-content li {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
}
.article-content strong { color: var(--text); }
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin: 14px 0 22px;
}
.article-code {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  margin: 26px 0;
  overflow-x: auto;
  padding: 18px;
  white-space: pre-wrap;
}
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.prompt-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}
.prompt-card h3 {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  padding: 14px 16px;
}
.prompt-card .article-code {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0;
}
.article-callout {
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  border-radius: 8px;
  padding: 18px;
  margin: 28px 0;
}
.workflow-card,
.article-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  margin: 26px 0;
}
.workflow-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.workflow-row:last-child { border-bottom: 0; }
.workflow-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
}
.article-table th,
.article-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.article-table th {
  color: var(--text);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.article-table td {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
.article-table tr:last-child td { border-bottom: 0; }
.pricing-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 18px;
}
.pricing-summary-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.pricing-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  opacity: .85;
}
.pricing-summary-card:nth-child(2)::before { background: oklch(0.72 0.16 290); }
.pricing-summary-card:nth-child(3)::before,
.pricing-summary-card:nth-child(4)::before { background: oklch(0.68 0.2 25); }
.pricing-summary-card::after {
  content: "";
  position: absolute;
  inset: -60px -80px auto auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: var(--accent-dim);
  opacity: .45;
  pointer-events: none;
}
.pricing-summary-tool {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pricing-summary-price {
  color: var(--text);
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.pricing-summary-usage {
  color: var(--text-2);
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  margin-bottom: 14px;
}
.article-content .pricing-summary-card p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  margin-top: auto;
}
.article-note {
  color: var(--muted) !important;
  font-size: 13px !important;
}
.article-figure {
  margin: 34px 0;
}
@media (min-width: 980px) {
  .article-figure {
    width: min(980px, calc(100vw - 40px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
  .article-figure.is-wide {
    width: min(1280px, calc(100vw - 40px));
  }
}
.article-figure figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 10px;
}
.article-cta {
  margin-top: 64px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 30px 0 0;
  background: transparent;
}
.article-content .article-cta .btn,
.article-content .article-cta-button,
.article-content a.article-cta-button {
  color: #062015;
  text-decoration: none;
  margin-top: 16px;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: none;
}
.article-content .article-cta-button::after,
.article-cta-button::after {
  content: "->";
  font-family: var(--mono);
  font-size: 11px;
  margin-left: 1px;
  transition: transform .2s;
}
.article-content .article-cta-button:hover::after,
.article-cta-button:hover::after {
  transform: translateX(2px);
}
.article-content .article-cta-button:hover {
  color: #03140d;
  box-shadow: 0 8px 20px -14px var(--accent);
}

/* Service landing page */
.service-shell {
  max-width: 1120px;
}
.service-hero {
  max-width: 920px;
}
.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.service-band {
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.service-section-head {
  display: block;
  max-width: 780px;
  margin-bottom: 24px;
}
.service-section-head .article-kicker {
  margin: 0 0 14px;
}
.service-section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}
.service-section-head p:not(.article-kicker) {
  color: var(--text-2);
  line-height: 1.65;
  margin: 12px 0 0;
}
.service-grid {
  display: grid;
  gap: 14px;
}
.service-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)),
    var(--surface-2);
  padding: 24px;
}
.service-panel.compact {
  padding: 20px;
}
.service-panel h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.service-panel p,
.service-panel li,
.pricing-signal p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}
.service-panel ul {
  margin: 0;
  padding-left: 19px;
}
.service-panel li + li {
  margin-top: 8px;
}
.muted-panel {
  background: rgba(255,255,255,.025);
}
.service-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.service-list .workflow-row {
  align-items: start;
}
.service-list .workflow-row p {
  margin-top: 5px;
}
.pricing-signal {
  max-width: 900px;
}
.pricing-signal strong {
  color: var(--text);
}
.service-example-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.service-example {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface-2);
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.service-example:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  background: color-mix(in oklab, var(--surface-2) 92%, var(--accent));
}
.service-example span {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.service-example strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}
.service-example em {
  color: var(--text-2);
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  margin-top: auto;
}
.service-final-cta {
  max-width: 860px;
  margin-top: 24px;
}
.service-final-cta .article-cta-button {
  margin-top: 22px;
}
.service-final-cta h2 {
  font-size: 30px;
  margin: 0 0 12px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 70px 28px 28px;
  overflow: auto;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(10px);
}
.image-viewer.is-open {
  display: block;
}
.image-viewer-open {
  overflow: hidden;
}
.image-viewer-canvas {
  min-height: calc(100vh - 98px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-viewer-img {
  max-width: min(1400px, 96vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: var(--surface-2);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.image-viewer.is-actual-size .image-viewer-canvas {
  min-width: max-content;
  align-items: flex-start;
}
.image-viewer.is-actual-size .image-viewer-img {
  max-width: none;
  max-height: none;
}
.image-viewer-actions {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 101;
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(9,10,11,.78);
  box-shadow: 0 14px 44px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}
.image-viewer-close,
.image-viewer-size {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
}
.image-viewer-close:hover,
.image-viewer-size:hover,
.image-viewer-size[aria-pressed="true"] {
  color: var(--accent);
  background: rgba(255,255,255,.08);
}
.image-viewer-close:focus-visible,
.image-viewer-size:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .article-shell { padding-top: 52px; }
  .article-title { font-size: 42px; }
  .article-deck { font-size: 17px; }
  .article-nav-inner {
    height: auto;
    min-height: 68px;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .article-nav-actions .article-back {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
  .service-grid.two,
  .service-grid.four,
  .service-example-list {
    grid-template-columns: 1fr;
  }
  .service-band {
    padding: 42px 0;
  }
  .pricing-summary { grid-template-columns: 1fr; }
  .article-table-wrap { overflow-x: auto; }
  .article-table { min-width: 720px; }
  .prompt-grid { grid-template-columns: 1fr; }
  .image-viewer {
    padding: 68px 14px 14px;
  }
  .image-viewer-actions {
    top: 14px;
    right: 14px;
  }
  .image-viewer-img {
    max-width: 96vw;
    max-height: 84vh;
  }
}

