/* ============================================
   bioAF Website Styles
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-bg-dark: #0a1020;
  --color-text: #0e1424;
  --color-text-muted: #5a6178;
  --color-primary: #0891b2;
  --color-primary-dark: #0e7490;
  --color-primary-light: #cffafe;
  --color-accent: #10b981;
  --color-accent-dark: #059669;
  --color-border: #e4e7ed;
  --color-code-bg: #f1f3f7;
  --color-terminal-bg: #0b1224;
  --color-terminal-border: #1c2540;
  --color-terminal-text: #d6deea;
  --color-terminal-muted: #6b7796;
  --color-terminal-prompt: #34d399;
  --color-terminal-accent: #22d3ee;
  --gradient-spark: linear-gradient(135deg, #0891b2 0%, #10b981 100%);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --nav-height: 64px;
  --sidebar-width: 260px;
}

/* ---- Reset & Base ---- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

pre {
  background: var(--color-bg-dark);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: inherit;
}

/* ---- Navigation ---- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-logo-tagline {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  text-decoration: none;
}

.external-icon {
  font-size: 0.75em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---- Hero Section ---- */

.hero {
  position: relative;
  padding: 5rem 1.5rem 5rem;
  text-align: center;
  background:
    radial-gradient(900px 450px at 50% -10%, rgba(8, 145, 178, 0.10), transparent 60%),
    radial-gradient(700px 350px at 85% 20%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  overflow: hidden;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 41, 0.04);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero h1 .grad {
  background: var(--gradient-spark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subtitle {
  font-size: 1.1875rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

/* ---- OS tabs (Getting Started) ---- */

.os-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 4px;
  margin: 1.5rem 0 1.25rem;
  flex-wrap: wrap;
}

.os-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.os-tab:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

.os-tab.active {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary-dark);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.os-tab.active:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.os-panel[hidden] {
  display: none;
}

/* ---- Install command block (copyable) ---- */

.install-block {
  margin: 1rem 0 1.5rem;
}

.install-box {
  display: flex;
  align-items: stretch;
  background: var(--color-text);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.install-box code {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #f1f5f9;
  background: transparent;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}

.install-copy {
  padding: 0 1.5rem;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.install-copy:hover {
  background: var(--color-primary-dark);
}

.install-copy.copied {
  background: #16a34a;
  color: #fff;
}

.install-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.625rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(8, 145, 178, 0.55);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(8, 145, 178, 0.6);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.hero-image {
  margin-top: 3rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* ---- Hero stack (terminal + dashboard) ---- */

.hero-stack {
  margin: 4rem auto 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem;
  align-items: center;
  text-align: left;
}

.hero-stack .terminal {
  align-self: center;
}

.hero-stack-screenshot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow:
    0 30px 60px -15px rgba(8, 145, 178, 0.18),
    0 12px 30px -10px rgba(15, 23, 41, 0.12);
  transform: translateY(0);
}

.hero-stack-screenshot::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.35), rgba(16, 185, 129, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

.hero-stack-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  margin: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .hero-stack {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
  }
}

/* ---- Terminal window ---- */

.terminal {
  background: var(--color-terminal-bg);
  border: 1px solid var(--color-terminal-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 25px 60px -20px rgba(8, 12, 28, 0.55),
    0 10px 25px -10px rgba(8, 12, 28, 0.35);
  font-family: var(--font-mono);
  color: var(--color-terminal-text);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: #060b1a;
  border-bottom: 1px solid var(--color-terminal-border);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3553;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--color-terminal-muted);
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 1rem 1.1rem 1.25rem;
  min-height: 220px;
}

.term-line {
  display: block;
  white-space: pre;
  overflow: hidden;
  width: 0;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: steps(40, end), ease-out;
}

.term-line .prompt {
  color: var(--color-terminal-prompt);
  font-weight: 600;
}

.term-line .cmd {
  color: var(--color-terminal-text);
}

.term-line .out {
  color: var(--color-terminal-muted);
}

.term-line .ok {
  color: var(--color-terminal-accent);
}

.term-line.l1 { animation: termType 1.0s steps(20, end) 0.4s forwards, termFade 0.2s ease-out 0.4s forwards; }
.term-line.l2 { animation: termType 1.0s steps(46, end) 1.7s forwards, termFade 0.2s ease-out 1.7s forwards; }
.term-line.l3 { animation: termType 1.0s steps(40, end) 3.0s forwards, termFade 0.2s ease-out 3.0s forwards; }
.term-line.l4 { animation: termType 0.9s steps(36, end) 4.2s forwards, termFade 0.2s ease-out 4.2s forwards; }

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  vertical-align: text-bottom;
  background: var(--color-terminal-accent);
  margin-left: 2px;
  animation: termBlink 1s steps(2) infinite;
}

@keyframes termType {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes termFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes termBlink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .term-line {
    animation: none !important;
    width: auto;
    opacity: 1;
  }
  .term-cursor { animation: none; }
}

/* ---- Install proof (single command) ---- */

.install-single {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem;
  align-items: center;
}

.install-single-cmd {
  display: flex;
  flex-direction: column;
}

.install-single-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.625rem;
}

.install-single-cmd .install-box {
  margin: 0 0 0.875rem;
  box-shadow:
    0 14px 36px -16px rgba(8, 12, 28, 0.45),
    0 6px 18px -8px rgba(8, 12, 28, 0.25);
}

.install-single-foot {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.install-single-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.install-single-list li {
  position: relative;
  padding: 0.625rem 0.5rem 0.625rem 2rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.install-single-list li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 1.05rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  box-sizing: border-box;
}

.install-single-list li strong {
  color: var(--color-text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .install-single {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---- Section Layout ---- */

.section {
  padding: 6rem 1.5rem;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.25rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.875rem;
}

.section-header h2 {
  font-size: 2.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Problem Cards ---- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.problem-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}

.problem-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.problem-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ---- Persona Cards ---- */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.persona-card {
  text-align: left;
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.persona-card:hover {
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 6px 20px -8px rgba(8, 145, 178, 0.18);
}

.persona-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 10px;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.persona-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.persona-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---- Workflow Steps ---- */

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

.workflow-step {
  text-align: left;
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 0 0.875rem;
  box-shadow: 0 4px 10px -4px rgba(8, 145, 178, 0.5);
}

.workflow-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.workflow-step p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- Feature Grid ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-tile {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-tile:hover {
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 6px 20px -8px rgba(8, 145, 178, 0.18);
  text-decoration: none;
  transform: translateY(-1px);
}

.feature-tile h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.feature-tile p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ---- Features Page ---- */

.features-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.features-hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  max-width: 680px;
  margin: 0 auto;
}

.features-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.features-hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.feature-page-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-page-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-color: #c8cdd8;
}

.feature-page-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-page-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-page-tagline {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.feature-page-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.feature-page-card ul li {
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  line-height: 1.5;
  border-top: 1px solid var(--color-border);
}

.feature-page-card ul li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.feature-page-card ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.feature-page-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
  padding-top: 1rem;
}

.feature-page-link:hover {
  text-decoration: underline;
}

.features-cta {
  text-align: center;
  padding: 3rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.features-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.features-cta p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-hero h1 {
    font-size: 2rem;
  }
}

/* ---- Services Page ---- */

.services-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.services-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.services-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.services-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.service-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem;
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card ul li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-card ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.services-cta {
  text-align: center;
  padding: 3rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.services-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.services-cta p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Longevity Section ---- */

.longevity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.longevity-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem;
}

.longevity-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.longevity-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .longevity-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Technology Strip ---- */

.tech-strip-groups {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tech-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tech-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  text-align: center;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tech-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 108px;
  padding: 1rem 0.75rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  opacity: 0.6;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.tech-logo-item:hover {
  opacity: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.tech-logo-item .logo-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 100%;
}

.tech-logo-item img {
  max-height: 36px;
  max-width: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
  display: block;
}

.tech-logo-item:hover img {
  filter: grayscale(0%);
}

.tech-logo-item span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .tech-logo-item {
    width: 90px;
    padding: 0.75rem 0.5rem 0.625rem;
  }
  .tech-logo-item .logo-img-wrap {
    height: 30px;
  }
  .tech-logo-item img {
    max-height: 30px;
    max-width: 60px;
  }
}

/* ---- Open Source Banner ---- */

.oss-banner {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(700px 350px at 20% 10%, rgba(8, 145, 178, 0.20), transparent 60%),
    radial-gradient(600px 300px at 80% 90%, rgba(16, 185, 129, 0.18), transparent 60%),
    var(--color-bg-dark);
  color: #fff;
  overflow: hidden;
}

.oss-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.oss-mascot {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  border-radius: 12px;
}

.oss-banner-text p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  .oss-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}

.oss-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.oss-banner p {
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.oss-banner .btn-primary {
  background: #fff;
  color: var(--color-bg-dark);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

.oss-banner .btn-primary:hover {
  background: #e2e8f0;
}

/* ---- Docs Layout ---- */

.docs-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - var(--nav-height) - 200px);
}

.docs-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: 2rem 1.5rem 2rem 1.5rem;
  border-right: 1px solid var(--color-border);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.sidebar-heading-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.sidebar-heading-link.active {
  color: var(--color-primary);
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav li a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.sidebar-nav li a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.sidebar-nav li a.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  font-weight: 500;
}

.sidebar-toggle {
  display: none;
}

/* ---- Docs Content ---- */

.docs-content {
  flex: 1;
  padding: 2.5rem 3rem;
  max-width: 800px;
  min-width: 0;
}

.docs-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.docs-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.docs-content p {
  margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-content li {
  margin-bottom: 0.375rem;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.docs-content th, .docs-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.docs-content th {
  background: var(--color-bg-alt);
  font-weight: 600;
}

/* ---- Info Bubble (expandable) ---- */

.info-bubble {
  background: var(--color-primary-light);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.info-bubble--warning {
  background: #fef9c3;
  border-color: #fde047;
}

.info-bubble--warning .info-icon {
  background: #ca8a04;
}

.info-bubble--warning summary::after {
  color: #ca8a04;
}

.info-bubble summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.info-bubble summary::-webkit-details-marker {
  display: none;
}

.info-bubble summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.info-bubble[open] summary::after {
  content: '\2212';
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  flex-shrink: 0;
}

.info-content {
  padding: 0 1rem 1rem;
  color: var(--color-text-muted);
}

/* ---- Screenshot Placeholder ---- */

.screenshot {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

/* ---- Screenshot Images ---- */

.screenshot-img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ---- Nav / Footer Logo ---- */

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--color-bg-dark);
  color: #94a3b8;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.375rem;
}

.site-footer a {
  color: #94a3b8;
  font-size: 0.875rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-note {
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.8125rem;
}

/* ---- Blog ---- */

/* Blog listing page */
.blog-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.blog-hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  max-width: 680px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.blog-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  text-decoration: none;
}

.blog-card-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.blog-card-thumbnail img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  margin: auto;
  display: block;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-date {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.blog-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Blog post page */
.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-date {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.blog-post-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.blog-post-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.blog-post-hero-image-inline {
  display: block;
  max-width: 150px;
  height: auto;
  margin: 0 auto 2.5rem;
  border: none;
  box-shadow: none;
}

.blog-screenshot-medium {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.blog-intro-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.blog-post-body .blog-intro-card img {
  max-width: 200px;
  height: auto;
  flex-shrink: 0;
  border: none;
  box-shadow: none;
  margin: 0;
}

.blog-intro-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-intro-card ul li {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  line-height: 1.5;
}

.blog-intro-card ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.blog-post-body {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.blog-post-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-post-body p {
  margin-bottom: 1.25rem;
}

.blog-post-body ul,
.blog-post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-post-body li {
  margin-bottom: 0.375rem;
}

.blog-post-body img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.blog-post-body blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 8px 8px 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.blog-post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* YouTube embed */
.youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.125rem;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .problem-grid,
  .persona-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 0.5rem 0;
  }

  .docs-container {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
  }

  .sidebar-toggle {
    display: block;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }

  .sidebar-nav {
    display: none;
    padding-top: 1rem;
  }

  .sidebar-nav.open {
    display: block;
  }

  .docs-content {
    padding: 1.5rem;
  }

  .blog-post-header h1 {
    font-size: 1.75rem;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }
}
