/* evidence-cli landing page
   Visual family inherited from design/web/src/styles.css:
   deep purple-black ground, violet brand + warm amber, Inter + Geist Mono. */

:root {
  --bg: #0b0910;
  --bg-2: #110d1c;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ece8f7;
  --muted: #9a93b6;
  --faint: #6f6889;

  --brand: #8b5cf6;
  --brand-2: #6366f1;
  --brand-3: #a855f7;
  --warm: #f59e0b;
  --warm-2: #fb7185;

  --green: #34d399;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --red: #f87171;

  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 600px at 8% 0%, rgba(245, 158, 11, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-3);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

::selection {
  background: rgba(139, 92, 246, 0.32);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(11, 9, 16, 0.92), rgba(11, 9, 16, 0.62));
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 16px;
}
.brand:hover {
  text-decoration: none;
}
.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--warm));
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.7);
  flex: none;
}
.brand .mono {
  font-family: var(--mono);
  font-weight: 600;
}
.ver {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}
.navlinks {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.navlinks a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.navlinks a:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
}
.navlinks a.cta {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--panel-2);
}

/* ---------- generic section ---------- */
section {
  padding: 84px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-3);
  margin: 0 0 14px;
}
h2 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}
.lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: 17px;
  margin: 0 0 8px;
}

/* ---------- hero ---------- */
.hero {
  padding: 92px 0 76px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

/* The .evidence format mark — the hero's signature, a large file-extension token. */
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 18px;
  margin-bottom: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background:
    radial-gradient(120px 60px at 20% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    rgba(0, 0, 0, 0.3);
  box-shadow: 0 18px 50px -26px rgba(139, 92, 246, 0.7);
}
.hero-mark-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--warm));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.8);
  flex: none;
}
.hero-mark-ext {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-3), var(--brand), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-mark-ext .dotpart {
  color: var(--faint);
  -webkit-text-fill-color: var(--faint);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 26px;
}
.pill .spark {
  color: var(--warm);
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 auto 20px;
  max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-3), var(--brand), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 60ch;
  margin: 0 auto 34px;
}

.install {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  max-width: 100%;
}
.install code {
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
  overflow-x: auto;
  min-width: 0; /* let it shrink so its own scroll engages, not the page's */
}
.install code .prompt {
  color: var(--faint);
  user-select: none;
}
.install button {
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  padding: 0 16px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex: none;
}
.install button:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.18);
}
.install button.copied {
  color: var(--green);
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.8);
}
.btn.primary:hover {
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
}
.btn.ghost {
  background: var(--panel);
}
.btn.ghost:hover {
  background: var(--panel-2);
  border-color: var(--border-strong);
}

.frameworks {
  margin-top: 46px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.frameworks .row {
  display: flex;
  gap: 10px 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.frameworks .row span {
  color: var(--muted);
}
.fw-live {
  color: var(--muted);
}
.fw-live b {
  color: var(--green);
  font-weight: 600;
}

/* ---------- code figure ---------- */
pre.fig {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.34);
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}
pre.fig .c {
  color: var(--faint);
}
pre.fig .req {
  color: var(--warm);
}
pre.fig .path {
  color: var(--brand-3);
}
pre.fig .kw {
  color: var(--teal);
}
pre.fig .str {
  color: var(--green);
}
pre.fig .fn {
  color: var(--brand-3);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 42px;
  align-items: center;
}
/* Grid/flex items default to min-width:auto, which lets a wide <pre> stretch
   the track past the viewport. Zero it so wide content scrolls in its own box. */
.two-col > *,
.code-tabs > *,
.code-block {
  min-width: 0;
}
.two-col .prose h2 {
  margin-bottom: 16px;
}
.two-col .prose p {
  color: var(--muted);
  margin: 0 0 14px;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand-3);
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 2px 4px 2px 0;
}

/* ---------- live example placeholder ---------- */
.example {
  text-align: center;
}
.example h2 {
  margin-bottom: 10px;
}
.frame-shell {
  margin-top: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(139, 92, 246, 0.55);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.frame-bar .lights {
  display: flex;
  gap: 7px;
}
.frame-bar .lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
  display: block;
}
.frame-bar .addr {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Download-sample call-to-action above the viewer. */
.try-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 30px 0 22px;
}
.try-steps .btn.primary code {
  color: inherit;
  font-size: 0.92em;
}
.try-steps .btn.primary .sz {
  opacity: 0.75;
  font-size: 0.85em;
}
.try-then {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* "Open in a new tab" link that sits at the right of the frame bar. */
.frame-open {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.frame-open:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(139, 92, 246, 0.18);
}

/* Reserved viewport for the hosted-viewer iframe — fixed aspect ratio so
   nothing shifts as it loads. */
.frame-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
}
.frame-viewport > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.frame-caption {
  margin: 18px auto 0;
  max-width: 66ch;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
}
.frame-caption code {
  color: var(--muted);
}

/* Reference-producer callout under the viewer. */
.producer-note {
  margin: 40px auto 0;
  max-width: 760px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(52, 211, 153, 0.06), transparent 70%),
    var(--panel);
  padding: 26px 28px;
}
.producer-note-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.producer-note-head .badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
}
.producer-note-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.producer-note p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 15px;
}
.producer-note .producer-punch {
  color: var(--text);
}
.producer-note .producer-punch b {
  color: var(--text);
  font-weight: 600;
}
.producer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ---------- profiles ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 34px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
}
.card .lvl {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}
.card .lvl .chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}
.card.l0 .lvl .chip {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.08);
}
.card.l1 .lvl .chip {
  color: var(--brand-3);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 15px;
}
.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.card ul li {
  margin: 6px 0;
}
.card ul li b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- usage ---------- */
.usage-head {
  text-align: center;
  margin-bottom: 6px;
}
.usage-head .lead {
  margin: 0 auto;
}
.code-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 34px;
}
.code-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
}
.code-block .label {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--panel);
}
.code-block pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.72;
  flex: 1;
}
.exit {
  margin-top: 26px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.exit b {
  color: var(--text);
}
.exit .ok {
  color: var(--green);
}
.exit .bad {
  color: var(--red);
}
.exit .warn {
  color: var(--amber);
}

/* ---------- footer ---------- */
footer {
  padding: 54px 0 64px;
  color: var(--muted);
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-brand {
  max-width: 40ch;
}
.foot-brand .brand {
  margin-bottom: 12px;
}
.foot-brand p {
  color: var(--faint);
  font-size: 14px;
  margin: 0;
}
.foot-links {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
}
.foot-links .col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
  font-weight: 600;
}
.foot-links .col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0;
}
.foot-links .col a:hover {
  color: var(--text);
}
.foot-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}
.foot-bottom .rebrand {
  color: var(--muted);
}
.foot-bottom .rebrand b {
  color: var(--brand-3);
  font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .grid-2,
  .code-tabs {
    grid-template-columns: 1fr;
  }
  .nav-hide {
    display: none;
  }
  section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .install code {
    font-size: 13px;
  }
  .ver {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover {
    transform: none;
  }
  * {
    transition: none !important;
  }
}
