/* 𝚅𝚒𝚋𝚎𝚌𝚛𝚊𝚏𝚝𝚎𝚍. with AI Agents by Vetcoders (c)2024-2026 LibraxisAI */
/* base.css - reset, header/footer, hero, forms, buttons, tables, accessibility layer. */
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-strong);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(123, 123, 247, 0.28); color: #fff; }
a { color: #d4d4d8; text-decoration: none; transition: color 150ms ease; }
a:hover { color: #ffffff; }
h1, h2, h3 { color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
code, pre, .mono-label, .eyebrow, .wordmark, .step-num, .preview-time, .badge { font-family: var(--mono); }

/* Header — frosted obsidian + viewfinder wordmark */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
header.top .top-inner {
  max-width: 74rem;
  margin: 0 auto;
  min-height: 68px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
header.top .brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  text-decoration: none;
  flex: none;
}
.brand-mark, .hero-corner {
  position: absolute;
  border-top: 2px solid var(--dim);
  border-left: 2px solid var(--dim);
  pointer-events: none;
}
.brand-mark { left: -12px; top: -10px; width: 10px; height: 10px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.wordmark::after, .cursor {
  content: "";
  display: inline-block;
  width: 9px;
  height: 17px;
  margin-left: 4px;
  background: #d4d4d8;
  animation: cd-blink 1.1s step-end infinite;
}
@keyframes cd-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wordmark::after, .cursor, .type-cursor, .hero-grid, .hero-aura { animation: none !important; }
}
header.top nav {
  display: flex;
  gap: 1.4rem;
  flex: 1;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.88rem;
}
header.top nav a { color: var(--muted); }
header.top nav a[aria-current="page"], header.top nav a:hover { color: #ffffff; }
header.top .account {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.88rem;
}
header.top .lang { color: var(--dim); }
header.top .lang:hover { color: var(--text-strong); }
header.top .nav-cta {
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}
header.top .nav-cta:hover { border-color: rgba(255, 255, 255, 0.25); background: var(--inset); }

main { width: 100%; max-width: 74rem; margin: 0 auto; padding: 2rem 1.5rem 3.5rem; flex: 1 0 auto; }
h1 { font-size: 1.85rem; margin: 0 0 1.25rem; font-family: var(--mono); }
h2 { font-size: 1.35rem; margin: 0 0 1rem; }
.muted, small { color: var(--muted); }

/* Eyebrow + mono labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 1px; background: #4a4a50; display: inline-block; }
.mono-label {
  margin: 0 0 0.35rem;
  color: var(--dim);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Hero — full-bleed obsidian grid + breathing indigo aura + cursor spotlight */
.hero {
  position: relative;
  width: 100vw;
  margin: -2rem 0 2.75rem calc(50% - 50vw);
  padding: 4rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-grid, .hero-aura, .hero-spotlight { position: absolute; pointer-events: none; }
.hero-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 78% 58% at 50% 30%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 58% at 50% 30%, #000 0%, transparent 76%);
  animation: cd-grid 9s linear infinite;
}
.hero-aura {
  top: -30px;
  left: 50%;
  width: 640px;
  height: 440px;
  max-width: 90vw;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--acc) 18%, transparent), transparent 70%);
  filter: blur(22px);
  animation: cd-aura 6.5s ease-in-out infinite;
}
.hero-spotlight {
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--acc) 16%, transparent), transparent 60%);
  transition: opacity 450ms ease;
}
@keyframes cd-grid { to { background-position: 44px 44px, 44px 44px; } }
@keyframes cd-aura {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.06); }
}
.hero-inner { position: relative; z-index: 1; max-width: 71rem; margin: 0 auto; }
.type-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: #d4d4d8;
  animation: cd-blink 1.1s step-end infinite;
}
.hero .grid.two { align-items: start; gap: 2.25rem; }
.hero-wordmark-wrap {
  position: relative;
  display: inline-block;
  margin: 0.75rem 0 0 18px;
}
.hero-corner { left: -18px; top: -14px; width: 18px; height: 18px; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.5vw, 4.1rem);
  line-height: 1;
  color: #ffffff;
}
.hero-promise {
  margin: 1.35rem 0 0;
  color: #fbfbfc;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.22;
}
.hero-promise span { display: block; }
.hero-copy { margin: 1rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.68; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

/* Terminal card */
.cli-label { margin: 1.5rem 0 0.45rem; font-family: var(--mono); font-size: 0.78rem; color: var(--dim); }
.terminal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.terminal-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: #26262b; }
.terminal-titlebar strong {
  margin-left: 6px;
  color: #5f5f66;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
}
.snippet {
  margin: 0;
  padding: 0.95rem 1.15rem;
  background: transparent;
  overflow-x: auto;
  color: #e2e2e5;
  font: 0.88rem/1.75 var(--mono);
}

/* Surfaces & finding preview */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin: 0 0 1.25rem;
}
.card h1, .card h2 { font-family: var(--mono); font-size: 1.35rem; margin: 0 0 1rem; }
.preview {
  margin: 0;
  background: linear-gradient(180deg, #0d0d13 0%, #09090d 100%);
  box-shadow: 0 0 0 1px rgba(123, 123, 247, 0.14), 0 22px 48px -20px rgba(0, 0, 0, 0.85);
}
.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.preview-head > div { display: flex; align-items: baseline; gap: 0.7rem; }
.preview-head strong { color: #ffffff; font-family: var(--mono); font-size: 0.92rem; }
.preview-time { color: var(--acc); font-size: 0.84rem; }
.badge {
  border: 1px solid rgba(229, 104, 111, 0.45);
  background: rgba(229, 104, 111, 0.1);
  color: var(--danger);
  border-radius: 999px;
  padding: 0.14rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.preview-quote {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  background: var(--inset);
  border-left: 2px solid var(--acc);
  border-radius: 0 8px 8px 0;
  color: var(--text-strong);
  font-size: 0.92rem;
}
.preview-quote time { color: var(--acc); font-family: var(--mono); font-size: 0.8rem; margin-right: 0.55rem; }
.preview-block { margin: 0 0 0.9rem; }
.preview-block p:last-child { margin: 0; color: var(--text-mid); font-size: 0.92rem; }
.fix-box {
  padding: 0.75rem 0.95rem;
  background: rgba(94, 185, 138, 0.06);
  border: 1px solid rgba(94, 185, 138, 0.24);
  border-radius: 8px;
}
.fix-box .mono-label { color: var(--ok); }
.preview-note { margin: 0.85rem 0 0; font-family: var(--mono); font-size: 0.76rem; color: var(--dim); }

/* Sections & pipeline */
.band { padding: 1.5rem 0 2.5rem; border-bottom: 1px solid var(--line-soft); }
.band:last-of-type { border-bottom: none; }
.band h2 { font-family: var(--mono); font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin: 0 0 1.25rem; }
.section-foot { margin: 1.15rem 0 0; max-width: 68ch; font-size: 0.95rem; }
.pipeline-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
}
.pipeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pipeline-row b { color: var(--acc); font-family: var(--mono); font-weight: 500; }
.pipeline-node {
  flex: 1 1 11rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.pipeline-node.is-active {
  border-color: rgba(123, 123, 247, 0.55);
  background: rgba(123, 123, 247, 0.07);
  box-shadow: 0 0 0 1px rgba(123, 123, 247, 0.2), 0 14px 40px -22px rgba(123, 123, 247, 0.6);
}
.pipeline-node strong { display: block; color: #ffffff; font-family: var(--mono); font-size: 0.95rem; }
.pipeline-node span { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 0.2rem; }

.grid.two { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.steps {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  transition: border-color 150ms ease;
}
.steps li:hover { border-color: rgba(255, 255, 255, 0.18); }
.step-num { display: block; color: var(--dim); font-size: 0.76rem; letter-spacing: 0.14em; margin-bottom: 0.45rem; }
.steps h3 { margin: 0 0 0.45rem; font-family: var(--mono); font-size: 1.02rem; color: #ffffff; }
.steps p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.plans { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.plans li {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
.plans.plans-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.plans-grid li { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.plans-grid li strong { font-family: var(--mono); font-size: 1.15rem; color: #ffffff; }
.plans-grid li > span:last-child { color: var(--muted); font-size: 0.92rem; }

/* Forms, buttons, tables */
form label { display: block; margin: 0 0 1rem; font-size: 0.92rem; color: var(--text-mid); }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.62rem 0.78rem;
  background: #050507;
  color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #050507;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
button:hover, .button:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: #050507; }
button.secondary, .button.secondary {
  background: var(--card);
  color: var(--text-strong);
  border-color: var(--line);
}
button.secondary:hover, .button.secondary:hover {
  background: var(--inset);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
button.danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(229, 104, 111, 0.55);
  padding: 0.35rem 0.75rem;
}
button.danger:hover { background: rgba(229, 104, 111, 0.12); border-color: var(--danger); color: var(--danger); }
button.link { background: none; border: none; color: var(--muted); padding: 0; font-weight: 400; }
button.link:hover { color: #ffffff; background: none; }
button[disabled] { opacity: 0.5; cursor: progress; }
form.inline { display: inline; margin: 0; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--dim); font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.35rem; margin: 0; }
dt { color: var(--muted); font-family: var(--mono); font-size: 0.86rem; }
dd { margin: 0; color: var(--text-strong); }
progress { width: 100%; height: 0.55rem; margin-top: 0.65rem; accent-color: var(--acc); }
.alert {
  border: 1px solid rgba(229, 104, 111, 0.5);
  background: rgba(229, 104, 111, 0.08);
  color: var(--text-strong);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0 1.25rem;
}
.ok {
  border: 1px solid rgba(94, 185, 138, 0.5);
  background: rgba(94, 185, 138, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0 1.25rem;
}


footer {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 0.78rem;
  padding: 0.65rem 1.5rem;
}
footer .footer-inner {
  max-width: 74rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}
footer .built {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-mid);
}
footer .built .cursor { width: 7px; height: 13px; }
footer .footer-note { margin: 0; color: var(--muted); }
footer .sig { margin: 0; color: var(--dim); font-size: 0.74rem; }

/* ---- Accessibility, focus, motion, prose links, skip-link, dialogs ---- */
[hidden] { display: none !important; }
.is-copied { outline: 2px solid var(--ok); outline-offset: 2px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 300;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #000000;
  font-family: var(--mono);
  font-size: 0.85rem;
  transition: top 120ms var(--ease);
}
.skip-link:focus { top: 0.6rem; color: #000000; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Inline prose links keep a visible underline (WCAG 1.4.1). */
main p a:not(.button):not(.btn):not(.btn-xs):not(.btn-sm),
main li a:not(.button):not(.btn),
main dd a:not(.button),
main small a,
main .muted a,
footer p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
main p a:not(.button):hover, main li a:not(.button):hover { text-decoration-thickness: 2px; }
dialog {
  color: var(--text-strong);
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); }
dialog:not([open]) { display: none; }
.cd-confirm {
  width: min(26rem, calc(100vw - 1.5rem));
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
}
.cd-confirm form { margin: 0; padding: 1.25rem; display: grid; gap: 0.85rem; }
.cd-confirm h2 { margin: 0; font-size: 1.05rem; }
.cd-confirm p { margin: 0; color: var(--text-mid); }
.cd-confirm .row { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  a, button, .button { forced-color-adjust: auto; }
  button, .button, input, select, textarea { border: 1px solid ButtonText; }
  :where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid Highlight; }
  progress { forced-color-adjust: none; accent-color: Highlight; }
}
/* ---- Early-access request card (landing, /billing, /early-access) ---- */
.early-access-standalone { max-width: 44rem; margin: 2.5rem auto; }
.section--early-access { padding-top: 2rem; }
.early-access-card {
  position: relative;
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--panel, #0a0a0a);
  border: 1px solid var(--line-strong, #262626);
  border-radius: var(--radius-lg, 14px);
}
.early-access-title { margin: 0.4rem 0 0.5rem; font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.early-access-lead { margin: 0 0 1.25rem; max-width: 58ch; }
.early-access-form { display: grid; gap: 1rem; }
.ea-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.ea-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.ea-field { display: grid; gap: 0.35rem; }
.ea-field--wide { grid-column: 1 / -1; }
.ea-field label { font-size: 0.82rem; color: var(--text-mid, #a3a3a3); }
.ea-field input,
.ea-field select,
.ea-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.8rem;
  background: var(--bg, #000000);
  color: var(--text-strong, #f5f5f5);
  border: 1px solid var(--line-strong, #262626);
  border-radius: var(--radius-md, 8px);
  font: inherit;
}
.ea-field input:focus,
.ea-field select:focus,
.ea-field textarea:focus {
  outline: none;
  border-color: var(--text-strong, #f5f5f5);
}
.ea-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.ea-footnote { font-size: 0.8rem; color: var(--text-dim, #737373); }
.ea-status { margin: 0; min-height: 1.25em; font-size: 0.9rem; }
.ea-status.is-ok { color: #86efac; }
.ea-status.is-err { color: #fca5a5; }
