/* Minimal, readable styles */
:root {
  --bg: #0b0c10;
  --panel: #12141a;
  --text: #e8ecf1;
  --muted: #aab3c2;
  --brand-1: #5a80e3;
  --brand-2: #98a4f5;
  --accent: #6B6BFF; /* Wrkless violet */
  --border: #20222a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 10% 5%, #11131a 0%, var(--bg) 60%);
  color: var(--text);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.nav-brand span { font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-links a:hover { background: #151824; color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  color: #0b0c10 !important;
}

.hero { text-align: center; padding: 24px 0 12px; }
.hero-title { margin: 10px 0 6px; font-size: 34px; letter-spacing: 0.3px; }
.hero-sub { margin: 0 0 8px; color: var(--muted); }
.hero-copy { margin: 0 auto 14px; color: var(--muted); max-width: 720px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand h1 { margin: 0; font-size: 28px; letter-spacing: 0.2px; }
.tagline { margin: 10px 0 18px; color: var(--muted); }

.cta-row { display: flex; gap: 10px; }
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #151824;
  color: var(--text);
  text-decoration: none;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  color: #0b0c10;
  border: 0;
  box-shadow: 0 6px 20px rgba(107,107,255,0.25);
}
.btn.primary:hover { filter: brightness(1.1); }

main { display: grid; gap: 16px; grid-template-columns: 1fr; }

/* Case studies pages: override grid layout to keep single column and center content */
main.case-studies-page,
main.workflows-page {
  display: block;
  max-width: 960px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.card h2 { margin-top: 0; }
.bullets { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.steps { margin: 8px 0 0 18px; color: var(--muted); }

/* Make About section span both columns on desktop */
.card.about { grid-column: 1 / -1; }

/* Center-align How it works card and space CTA */
.card.center { text-align: center; }
.card.center .steps { text-align: left; display: inline-block; margin: 8px 0 0 18px; }
.card.center .btn.primary { margin-top: 12px; }

/* Case Studies */
.page-title { 
  margin: 24px 0 32px; 
  font-size: 32px; 
  text-align: center; 
}
.case-studies-grid { 
  display: grid; 
  gap: 20px; 
  grid-template-columns: 1fr; 
  margin-top: 16px;
  max-width: 100%;
}

.case-study-card { 
  display: flex; 
  flex-direction: column; 
  width: 100%;
}
.case-study-client { margin: 4px 0 8px; font-size: 14px; color: var(--muted); font-style: italic; }
.case-study-summary { flex-grow: 1; margin-bottom: 12px; line-height: 1.6; }
.case-study-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  display: inline-block;
  padding: 4px 8px;
  background: #1a1c24;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--muted);
}
.case-study-card .btn { margin-top: auto; align-self: flex-start; }

.case-study-nav { margin: 16px 0; }
.case-study-nav a { color: var(--muted); text-decoration: none; }
.case-study-nav a:hover { color: var(--text); }
.case-study-detail { 
  max-width: 100%;
  margin: 0 auto;
}
.case-study-detail h1 { margin-top: 0; }
.case-study-section { margin: 20px 0; }
.case-study-section h3 { margin-bottom: 8px; font-size: 18px; }

/* Workflows */
.workflows-grid { 
  display: grid; 
  gap: 20px; 
  grid-template-columns: 1fr; 
  margin-top: 16px;
}
@media (min-width: 720px) {
  .workflows-grid { grid-template-columns: 1fr 1fr; }
}

.workflow-card { 
  display: flex; 
  flex-direction: column; 
  width: 100%;
}
.workflow-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}
.workflow-description { 
  flex-grow: 1; 
  margin-bottom: 12px; 
  line-height: 1.6; 
  color: var(--muted);
}

/* Markdown styling for workflow descriptions - GitHub-style */
.workflow-description {
  color: var(--text);
  line-height: 1.6;
}

.workflow-description p {
  margin: 0 0 20px 0;
  color: var(--text);
  line-height: 1.7;
}

.workflow-description p:last-child {
  margin-bottom: 0;
}

.workflow-description strong {
  font-weight: 600;
  color: var(--text);
}

.workflow-description em {
  font-style: italic;
}

.workflow-description ul, 
.workflow-description ol {
  margin: 16px 0 20px 0;
  padding-left: 28px;
  color: var(--text);
  line-height: 1.7;
}

.workflow-description li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.workflow-description li:last-child {
  margin-bottom: 0;
}

.workflow-description ul li {
  list-style-type: disc;
}

.workflow-description ol li {
  list-style-type: decimal;
}

.workflow-description li p {
  margin: 0 0 8px 0;
}

.workflow-description li strong {
  display: inline-block;
  margin-right: 6px;
}

.workflow-description a {
  color: #6B6BFF;
  text-decoration: underline;
}

.workflow-description a:hover {
  color: #8B8BFF;
}

.workflow-description code {
  background: rgba(107, 107, 255, 0.15);
  padding: 3px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

.workflow-description pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0 20px 0;
  line-height: 1.5;
}

.workflow-description pre code {
  background: transparent;
  padding: 0;
}

.workflow-description h1, 
.workflow-description h2, 
.workflow-description h3,
.workflow-description h4,
.workflow-description h5,
.workflow-description h6 {
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.workflow-description h1:first-child,
.workflow-description h2:first-child,
.workflow-description h3:first-child {
  margin-top: 0;
}

.workflow-description h1 { font-size: 1.75rem; }
.workflow-description h2 { font-size: 1.5rem; }
.workflow-description h3 { font-size: 1.25rem; }

.workflow-description blockquote {
  border-left: 4px solid rgba(107, 107, 255, 0.5);
  padding: 0 0 0 16px;
  margin: 16px 0 20px 0;
  color: var(--muted);
  font-style: italic;
}

/* Spacing between sections */
.workflow-description > * + p {
  margin-top: 20px;
}

.workflow-description p + ul,
.workflow-description p + ol {
  margin-top: -4px;
}
.workflow-card .btn { 
  margin-top: auto; 
  align-self: flex-start;
  width: 100%;
  text-align: center;
}
@media (min-width: 720px) {
  .workflow-card .btn {
    width: auto;
  }
}

.workflow-nav { margin: 16px 0; }
.workflow-nav a { color: var(--muted); text-decoration: none; }
.workflow-nav a:hover { color: var(--text); }
.workflow-detail { 
  max-width: 100%;
  margin: 0 auto;
}
.workflow-detail h1 { margin-top: 0; }
.workflow-preview-container {
  margin-top: 24px;
  width: 100%;
  min-height: 500px;
  border-radius: 8px;
  overflow: hidden;
}

.footer { color: var(--muted); text-align: center; margin-top: 20px; }

@media (min-width: 720px) {
  main:not(.case-studies-page):not(.workflows-page) { grid-template-columns: 1fr 1fr; }
}


