/* mechub public site — brand system v1.0 tokens
   (text tokens lightened one step from the brand doc for readability) */
:root {
  --ink-0: #0B0D12;
  --ink-1: #12151C;
  --ink-2: #171A22;
  --border: #262B38;
  --text-1: #F8F9FA;
  --text-2: #C9CED5;
  --text-3: #9AA2AD;
  --teal: #4DD0C8;
  --teal-deep: #0D9488;
  --teal-dim: #005B5A;
  --plum: #7C3AED;
  --plum-light: #C4B5FD;
  --ok: #34D399;
  --warn: #FBBF24;
  --err: #F87171;
  --info: #60A5FA;
  --sans: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  background: var(--ink-0);
  color: var(--text-1);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); }

/* ---------- controls: mono pills (Geist Mono 500 · 12.5px · 34px) ---------- */
.pill {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  height: 34px; padding: 0 18px;
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap;
}
.pill:hover { text-decoration: none; }
.pill.primary { background: var(--teal); color: var(--ink-0); }
.pill.primary:hover { background: #B7F5F0; }
.pill.secondary { background: transparent; color: var(--teal); border-color: var(--teal-dim); }
.pill.secondary:hover { border-color: var(--teal); }
.pill:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(11,13,18,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
nav .brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; letter-spacing: -.01em; flex: none;
  color: var(--text-1);
}
nav .brand:hover { text-decoration: none; }
nav .brand svg { width: 22px; height: 22px; }
nav a.sec { font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
nav a.sec:hover { color: var(--teal); text-decoration: none; }
nav a.sec b { color: var(--teal-deep); font-weight: 500; margin-right: 4px; }
nav .nav-gh { margin-left: auto; height: 28px; padding: 0 14px; flex: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 64px) clamp(50px, 8vw, 90px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 480px at 70% 0%, rgba(13,148,136,.12), transparent 65%),
    var(--ink-0);
  overflow: hidden;
}
#mesh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(77,208,200,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,208,200,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 420px at 60% 20%, black, transparent 75%);
}
.hero-inner { position: relative; max-width: 980px; margin: 0 auto; }
.hero .lockup { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero .mark { width: clamp(84px, 12vw, 128px); height: auto; }
.hero .mark .draw {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 1.6s .2s cubic-bezier(.6,0,.3,1) forwards;
}
.hero .mark circle { opacity: 0; animation: nodein .4s ease-out forwards; }
.hero .mark circle:nth-of-type(1) { animation-delay: .3s; }
.hero .mark circle:nth-of-type(2) { animation-delay: .6s; }
.hero .mark circle:nth-of-type(3) { animation-delay: 1.1s; }
.hero .mark circle:nth-of-type(4) { animation-delay: 1.5s; }
.hero .mark circle:nth-of-type(5) { animation-delay: .85s; }
.hero .mark circle:nth-of-type(6) { animation-delay: .95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nodein { to { opacity: 1; } }
.hero h1 { font-size: clamp(52px, 9vw, 96px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.hero h1 .hub { color: var(--teal); }
.hero .statement {
  margin-top: 26px; max-width: 640px;
  font-size: clamp(17px, 2.4vw, 21px); color: var(--text-2); line-height: 1.55;
}
.hero .statement strong { color: var(--text-1); font-weight: 600; }
.grad {
  background: linear-gradient(90deg, var(--teal), var(--plum-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.badges { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 12px;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2);
  background: var(--ink-1);
}
.badge.teal { color: var(--teal); border-color: var(--teal-dim); }
.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.wrap { max-width: 980px; margin: 0 auto; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; color: var(--teal);
  letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow b { color: var(--teal-deep); font-weight: 500; }
section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.03em; margin: 10px 0 14px; }
section .lede { color: var(--text-2); max-width: 680px; margin-bottom: 34px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 14px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards.repo-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  background: var(--ink-1); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; transition: border-color .2s ease, transform .2s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { border-color: var(--teal-dim); transform: translateY(-2px); }
.card .k { font-family: var(--mono); font-size: 12px; color: var(--teal); display: block; }
.card h3 { font-size: 15.5px; font-weight: 600; }
.card h3 a { color: var(--text-1); }
.card h3 a:hover { color: var(--teal); text-decoration: none; }
.card p { font-size: 13.5px; color: var(--text-2); }
.card.ai { border-color: rgba(124,58,237,.4); }
.card.ai .k { color: var(--plum-light); }
.llm { color: var(--plum-light); }
.card .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.card .stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.card .stats b { color: var(--text-2); font-weight: 500; }
.card .links { display: flex; gap: 8px; flex-wrap: wrap; }
.card .links .pill { height: 28px; padding: 0 14px; font-size: 12px; }

blockquote {
  border-left: 3px solid var(--teal-deep);
  padding: 6px 0 6px 20px; margin: 34px 0 0;
  font-size: clamp(17px, 2.5vw, 21px); font-weight: 600; letter-spacing: -.015em;
}
blockquote .m { color: var(--plum-light); }

/* ---------- rule list (where we are) ---------- */
.rule-list { list-style: none; max-width: 760px; }
.rule-list li { padding: 12px 0 12px 26px; position: relative; color: var(--text-2); font-size: 14.5px; border-bottom: 1px solid var(--ink-2); }
.rule-list li::before { content: "—"; position: absolute; left: 0; color: var(--teal-deep); font-family: var(--mono); }
.rule-list li strong { color: var(--text-1); }

/* ---------- timeline (roadmap) ---------- */
.timeline { border-left: 2px solid var(--border); margin-left: 7px; padding-left: 30px; display: flex; flex-direction: column; gap: 30px; }
.tl-item { position: relative; max-width: 700px; }
.tl-item::before {
  content: ""; position: absolute; left: -39px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(77,208,200,.15);
}
.tl-item.future::before { background: var(--ink-0); border: 2px solid var(--plum-light); box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
.tl-item .when {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal);
}
.tl-item.future .when { color: var(--plum-light); }
.tl-item h3 { font-size: 16px; font-weight: 600; margin: 6px 0 6px; }
.tl-item p { font-size: 13.5px; color: var(--text-2); }

/* ---------- footer ---------- */
footer { padding: 40px clamp(20px, 5vw, 64px); color: var(--text-3); font-size: 12.5px; }
footer .disclaimer { max-width: 760px; margin-bottom: 18px; }
footer .colophon { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.shown { opacity: 1; transform: none; }
.eyebrow.typing::after { content: "▍"; color: var(--teal); animation: caret 1s steps(2, start) infinite; }
@keyframes caret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .mark .draw { animation: none; stroke-dashoffset: 0; }
  .hero .mark circle { animation: none; opacity: 1; }
  .card:hover { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
