/* ProtosAxiom shared site styles — used by SEO content pages.
   Homepage and tool pages keep their own inline styles for now. */

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

:root {
  --bg-primary: #09090b;
  --bg-secondary: #111114;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c21;
  --border: #27272a;
  --border-subtle: #1e1e22;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --gradient-start: #6366f1;
  --gradient-end: #8b5cf6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-logo { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.5rem; }
.nav-logo svg { flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { background: var(--accent) !important; color: #fff !important; padding: 0.5rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; transition: all 0.2s; }
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

/* ── Layout ── */
main { max-width: 760px; margin: 0 auto; padding: 7rem 2rem 4rem; }
main.wide { max-width: 1080px; }

.breadcrumb { font-size: 0.825rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }

article h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
article h1 .gradient {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

article .lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

article h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 2.75rem 0 1rem;
  line-height: 1.25;
}

article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 1.75rem 0 0.6rem;
}

article p, article ul, article ol {
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.7;
}

article ul, article ol { padding-left: 1.5rem; }
article ul li, article ol li { margin-bottom: 0.4rem; }

article strong { color: var(--text-primary); font-weight: 600; }

article a { color: var(--accent-hover); text-decoration: none; border-bottom: 1px solid rgba(129, 140, 248, 0.3); transition: border-color 0.15s; }
article a:hover { border-bottom-color: var(--accent-hover); }

/* Pull-quote / fact box */
.fact-box {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.65;
}
.fact-box strong { color: var(--accent-hover); }

/* Comparison snippet */
.compare-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0 2rem;
}
.compare-strip > div {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.compare-strip > div.featured { border-color: var(--accent); background: rgba(99,102,241,0.05); }
.compare-strip .name { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.35rem; }
.compare-strip .featured .name { color: var(--accent-hover); }
.compare-strip .amt { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.2rem; }
.compare-strip .sub { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.45; }

/* Inline CTA card */
.inline-cta {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.inline-cta-text { flex: 1; min-width: 220px; }
.inline-cta h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 0.3rem; color: var(--text-primary); }
.inline-cta p { color: var(--text-secondary); margin: 0; font-size: 0.9rem; line-height: 1.55; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); color: #fff; border-bottom: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-muted); transform: translateY(-2px); }

/* FAQ */
.faq-block { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); }
.faq-block h2 { margin-top: 0; }
.faq-list { margin-top: 1rem; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent-hover); }
.faq-chevron { font-size: 0.85rem; color: var(--text-muted); transition: transform 0.3s ease; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.15rem; }
.faq-answer p { color: var(--text-secondary); font-size: 0.925rem; line-height: 1.7; margin-bottom: 0; }

/* Related pages */
.related-block { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); }
.related-block h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 1rem; letter-spacing: -0.015em; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.related-card {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: all 0.2s;
}
.related-card:hover { border-color: var(--border) !important; transform: translateY(-2px); }
.related-card .related-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--text-primary); }
.related-card .related-sub { font-size: 0.8rem; color: var(--text-muted); }

/* Footer */
footer { padding: 3rem 2rem; border-top: 1px solid var(--border-subtle); text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 4rem; }
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child) { display: none; }
  main { padding: 5.5rem 1.25rem 3rem; }
  article h1 { font-size: 2rem; }
  article h2 { font-size: 1.35rem; margin-top: 2rem; }
  .inline-cta { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
}
