/* ---------- Effects ---------- */
.glow-cyan { box-shadow: 0 0 60px -12px rgba(56, 189, 248, 0.3); }
.code-gradient { background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(56, 189, 248, 0.14), transparent 70%); }
.bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 100%);
}

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #38bdf8;
}
.link { color: #38bdf8; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: #7dd3fc; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; border-radius: 0.5rem; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #0ea5e9; color: #020617; box-shadow: 0 10px 30px -12px rgba(14, 165, 233, 0.6); }
.btn-primary:hover { background: #38bdf8; }
.btn-secondary { border: 1px solid #1e293b; background: rgba(15, 23, 42, 0.6); color: #cbd5e1; }
.btn-secondary:hover { border-color: #334155; background: #0f172a; color: #fff; }
.btn-sm { font-size: 0.8rem; padding: 0.5rem 0.9rem; }
.btn-md { font-size: 0.875rem; padding: 0.75rem 1.5rem; }
.btn-lg { font-size: 0.9rem; padding: 0.9rem 1.75rem; }

/* ---------- Nav ---------- */
.nav-link { color: #94a3b8; padding: 0.5rem 0.75rem; border-radius: 0.5rem; transition: color .15s, background-color .15s; }
.nav-link:hover { color: #fff; background: rgba(30, 41, 59, 0.6); }
body[data-page="pricing"] [data-nav="pricing"],
body[data-page="contact"] [data-nav="contact"] { color: #fff; }

/* ---------- Cards & chips ---------- */
.card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 0.875rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(56, 189, 248, 0.35); transform: translateY(-2px); box-shadow: 0 24px 48px -28px rgba(56, 189, 248, 0.3); }
.chip {
  display: inline-flex; align-items: center; padding: 0.3rem 0.75rem; border-radius: 999px;
  border: 1px solid #1e293b; background: rgba(15, 23, 42, 0.7); color: #cbd5e1; font-weight: 600;
}
.pill {
  display: inline-flex; align-items: center; padding: 0.3rem 0.7rem; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-size: 0.7rem;
  border: 1px solid #1e293b; background: rgba(15, 23, 42, 0.7); color: #94a3b8;
}

/* ---------- Code panels ---------- */
.code-panel { background: #0f172a; border: 1px solid #1e293b; border-radius: 0.875rem; overflow: hidden; display: flex; flex-direction: column; }
.code-head {
  background: #020617; padding: 0.65rem 1rem; border-bottom: 1px solid #1e293b;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: "JetBrains Mono", monospace; font-size: 0.7rem; color: #94a3b8;
}
.code-panel pre { padding: 1.1rem 1.25rem; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; line-height: 1.7; overflow-x: auto; flex: 1; }

/* ---------- Forms ---------- */
.field { display: block; }
.field > span { display: block; font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: 0.5rem; background: #020617; border: 1px solid #1e293b;
  padding: 0.65rem 0.85rem; color: #e2e8f0; font-size: 0.9rem; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.field textarea { resize: vertical; }

/* ---------- FAQ ---------- */
.faq { padding: 1.1rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; color: #f1f5f9; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "JetBrains Mono", monospace; color: #38bdf8; font-size: 1.1rem; transition: transform .2s; }
.faq[open] summary::after { content: "–"; }
.faq p { margin-top: 0.75rem; font-size: 0.9rem; color: #94a3b8; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer-h { font-family: "JetBrains Mono", monospace; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.8rem; color: #94a3b8; }
.footer-links a { transition: color .15s; }
.footer-links a:hover { color: #fff; }

/* ---------- Legal / long-form ---------- */
.legal { color: #cbd5e1; line-height: 1.8; font-size: 0.95rem; }
.legal .lead { font-size: 1.05rem; color: #e2e8f0; }
.legal h2 { color: #fff; font-size: 1.25rem; font-weight: 700; margin: 2.5rem 0 0.75rem; scroll-margin-top: 5.5rem; }
.legal p { margin: 0.75rem 0; }
.legal ul, .legal ol { margin: 0.75rem 0; padding-left: 1.4rem; }
.legal ul { list-style: disc; } .legal ol { list-style: decimal; }
.legal ul ul { list-style: circle; margin: 0.4rem 0; }
.legal li { margin: 0.45rem 0; }
.legal li::marker { color: #38bdf8; }
.legal strong { color: #f1f5f9; }
.legal a { color: #38bdf8; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: #7dd3fc; }
.legal code { font-family: "JetBrains Mono", monospace; font-size: 0.85em; color: #7dd3fc; background: rgba(56, 189, 248, 0.08); padding: 0.1em 0.35em; border-radius: 4px; }
.legal hr { border: 0; border-top: 1px solid #1e293b; margin: 2rem 0 0; }

.toc { display: flex; flex-direction: column; gap: 0.15rem; border-left: 1px solid #1e293b; }
.toc a { display: block; padding: 0.35rem 0 0.35rem 0.9rem; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.8rem; color: #64748b; line-height: 1.4; transition: color .15s, border-color .15s; }
.toc a:hover { color: #cbd5e1; }
.toc a.active { color: #38bdf8; border-left-color: #38bdf8; }

.related-link { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.9rem; border-radius: 0.5rem; border: 1px solid #1e293b; font-size: 0.85rem; color: #cbd5e1 !important; text-decoration: none !important; transition: border-color .15s, color .15s; }
.related-link:hover { border-color: rgba(56, 189, 248, 0.4); color: #fff !important; }

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .nav-link { transition: none; }
  .card:hover { transform: none; }
  .animate-ping { animation: none; }
}

/* ---------- Product sub-nav ---------- */
.subnav-link { color: #94a3b8; padding: 0.35rem 0.6rem; border-radius: 0.375rem; white-space: nowrap; transition: color .15s, background-color .15s; }
.subnav-link:hover { color: #fff; background: rgba(30, 41, 59, 0.6); }
body[data-page="products"] [data-nav="products"],
body[data-page="triagewire"] [data-nav="products"] { color: #fff; }
.card.border-dashed { border-style: dashed; }
