/* ==========================================================================
   mini-ork — landing page
   Dark-only. One accent (amber). Verdict colours carry meaning and are always
   paired with a word, never colour alone.
   ========================================================================== */

:root {
  --acc: #f5a524;
  --bg: #111214;
  --bg-2: #141518;
  --panel: #151619;
  --panel-2: #18191d;
  --fg: #ecebe6;
  --muted: #b4b3ad;
  --dim: #8d8c86;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ok: #5fd68a;
  --warn: #f5c04a;
  --bad: #ff7a6b;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc); text-decoration: none; }
a:hover { color: #ffc45c; }
code, pre { font-family: var(--mono); }
::selection { background: rgba(245, 165, 36, 0.25); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--acc); color: #111; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.dim { color: var(--dim); }
.ok  { color: var(--ok); }
.bad { color: var(--bad); }
.str { color: var(--warn); }

/* ------------------------------- nav ------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 18, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--fg); font-weight: 650; letter-spacing: -0.01em;
  font-size: 20px;
}
.brand img { border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--fg); }
.nav__repo {
  border: 1px solid var(--line-2); border-radius: 8px;
  padding: 6px 12px; color: var(--fg) !important;
}
.nav__repo:hover { border-color: var(--acc); color: var(--acc) !important; }

/* ------------------------------- hero ----------------------------------- */
.hero { position: relative; overflow: clip; padding: 84px 0 72px; }
.hero__grid, .hero__glow { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 75%);
  opacity: 0.5;
}
.hero__glow {
  background: radial-gradient(ellipse 55% 45% at 72% 20%, rgba(245, 165, 36, 0.11), transparent 70%);
}
.hero__cols {
  position: relative;
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center;
}
/* Grid children default to min-width:auto; a nowrap line anywhere inside one
   then widens its column past the viewport. Let them shrink. */
.hero__cols > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 13px; margin: 0 0 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(95, 214, 138, 0.16); }

h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 720;
}
h1 em { font-style: normal; color: var(--acc); }

.lede { color: var(--muted); font-size: 17.5px; max-width: 34em; margin: 0 0 30px; }
.lede strong { color: var(--fg); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.actions--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 9px;
  font-size: 15px; font-weight: 600; transition: filter .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--acc); color: #16130c; }
.btn--primary:hover { color: #16130c; filter: brightness(1.08); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn--ghost:hover { border-color: var(--acc); color: var(--acc); }
.arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.install {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 12px; max-width: 640px;
  font-size: 13px; overflow: hidden;
}
.install--center { margin: 0 auto; }
.install__prompt { color: var(--acc); font-family: var(--mono); }
.install code {
  color: var(--muted); white-space: nowrap; overflow-x: auto;
  scrollbar-width: none; flex: 1; min-width: 0;
}
.install code::-webkit-scrollbar { display: none; }
.install__copy {
  background: transparent; border: 1px solid var(--line-2); color: var(--dim);
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 5px 9px; border-radius: 6px; cursor: pointer;
  flex: none;
}
.install__copy:hover { color: var(--fg); border-color: var(--acc); }
.install__copy.copied { color: var(--ok); border-color: var(--ok); }

/* ------------------------------ console --------------------------------- */
.console {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.console__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.dot-r, .dot-y, .dot-g { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.console__name { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.console__live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; color: var(--ok);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.console__body { padding: 18px 20px 6px; }
.console pre {
  margin: 0; font-size: 12.4px; line-height: 1.75; color: var(--muted);
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
.console pre b { color: var(--fg); font-weight: 600; }
.console__note {
  margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--line);
  font-size: 12.6px; color: var(--dim);
}
.console__note code { color: var(--warn); }

/* ------------------------------- stats ---------------------------------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 26px 26px 0; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 26px; }
.stat__n { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--fg); letter-spacing: -0.02em; }
.stat__n .stat__sub { color: var(--dim); font-size: 18px; }
.stat__l { font-size: 13px; color: var(--dim); max-width: 24em; }

/* ------------------------------ sections -------------------------------- */
.sec { padding: 90px 0; }
.sec--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec__head { max-width: 760px; margin-bottom: 44px; }
.sec__num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--acc); text-transform: uppercase;
}
.sec h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.025em; margin: 10px 0 12px; }
.sec__lede { color: var(--muted); font-size: 16.5px; margin: 0; }
.sec__lede em { color: var(--fg); font-style: normal; }

/* ------------------------------- cards ---------------------------------- */
.cards { display: grid; gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); }
.card__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; margin-bottom: 14px;
  background: rgba(245, 165, 36, 0.1); color: var(--acc);
  font-family: var(--mono); font-size: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: -0.01em; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14.3px; }
.card ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 13.8px; }
.card li { margin-bottom: 5px; }
.card li b { color: var(--muted); font-weight: 600; }
.card--sm { padding: 20px; }
.card--sm h3 { font-size: 15.5px; }
.card--sm p { font-size: 13.4px; margin: 0; }
.card--link a { color: inherit; display: block; }
.card--link:hover { border-color: var(--acc); }

/* ------------------------------ pipeline -------------------------------- */
.pipeline {
  list-style: none; margin: 0 0 35px; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  counter-reset: none;
}
.pipeline li {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 14px;
}
.pipeline li::after {
  content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: var(--dim); font-family: var(--mono); font-size: 13px;
}
.pipeline li:last-child::after { content: ""; }
.pipeline__idx {
  font-family: var(--mono); font-size: 11px; color: var(--acc);
  display: block; margin-bottom: 8px;
}
.pipeline h3 { margin: 0 0 4px; font-size: 14.5px; }
.pipeline p { margin: 0; font-size: 12.6px; color: var(--dim); line-height: 1.5; }

.snippet { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; max-width: 760px; }
.snippet__head {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  padding: 9px 16px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.07em;
}
.snippet pre { margin: 0; padding: 16px; font-size: 12.8px; line-height: 1.8; color: var(--muted); overflow-x: auto; }

/* -------------------------------- table --------------------------------- */
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim); font-weight: 500;
  padding: 13px 18px; border-bottom: 1px solid var(--line-2);
  background: var(--panel-2);
}
.tbl td { padding: 18px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td b { color: var(--fg); font-weight: 600; }
.tbl td:first-child { width: 30%; }
.tbl td:nth-child(2) { width: 25%; }

/* ------------------------------- limits --------------------------------- */
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.limit {
  background: linear-gradient(180deg, rgba(255, 122, 107, 0.045), transparent 60%), var(--panel);
  border: 1px solid var(--line); border-top: 2px solid rgba(255, 122, 107, 0.5);
  border-radius: 12px; padding: 22px;
}
.limit h3 { margin: 0 0 8px; font-size: 16px; }
.limit p { margin: 0; color: var(--muted); font-size: 14px; }
.limit b { color: var(--fg); }

/* -------------------------------- cta ----------------------------------- */
.cta {
  padding: 96px 0 104px; text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(245, 165, 36, 0.08), transparent 70%),
    var(--bg);
}
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; margin: 0 0 12px; }
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 36em; }
.cta code { color: var(--acc); font-size: 0.92em; }

/* ------------------------------- footer --------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 42px; }
.foot__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; }
.foot__brand img { border-radius: 7px; }
.foot__links { display: flex; gap: 20px; font-size: 13.5px; }
.foot__links a { color: var(--dim); }
.foot__links a:hover { color: var(--fg); }
.foot__note { margin: 0 0 0 auto; color: var(--dim); font-size: 12.8px; }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1000px) {
  .hero__cols { grid-template-columns: 1fr; gap: 44px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline li:nth-child(3)::after { content: ""; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .limits { grid-template-columns: 1fr; }
  .foot__note { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 720px) {
  .wrap, .nav__inner { width: calc(100% - 32px); }
  .nav__links { gap: 14px; }
  .nav__links a:not(.nav__repo) { display: none; }
  .hero { padding: 56px 0 48px; }
  .sec { padding: 64px 0; }
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline li:nth-child(2n)::after { content: ""; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { padding: 18px 0; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .tbl td:first-child, .tbl td:nth-child(2) { width: auto; }
  .table-wrap { overflow-x: auto; }
  .tbl { min-width: 640px; }
  .install { font-size: 11.5px; }
}
