/* Clawrari brand + site v1
   Dark palette, one accent (signal red). Typographic, no imagery. */

:root {
  --bg: #0a0a0a;
  --bg-2: #101010;
  --surface: #141414;
  --surface-2: #181818;
  --border: #262626;
  --border-2: #333333;
  --text: #ededed;
  --muted: #b3b3b3;
  --faint: #8f8f8f;
  --accent: #ff3b30;
  --accent-soft: rgba(255, 59, 48, 0.12);
  --radius: 12px;
  --maxw: 900px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
.u { color: var(--accent); }

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

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* ---- Wordmark ---- */
.wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
}
.cursor {
  display: inline-block;
  width: 0.46em; height: 0.9em;
  background: var(--accent);
  margin-left: 0.12em;
  transform: translateY(0.06em);
  border-radius: 0.06em;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- Hero ---- */
.hero { padding: 96px 0 64px; }
.hero-copy { min-width: 0; }
/* right-side identity plate (mirrors the OG card) */
.hero-plate { display: none; }
@media (min-width: 900px) {
  .hero .wrap:has(.hero-plate) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px; align-items: center;
  }
  .hero-plate {
    display: flex; flex-direction: column; gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 34px 32px;
  }
}
.hero-plate .plate-label {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.hero-plate dl { margin: 0; display: flex; flex-direction: column; }
.hero-plate dl > div {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.hero-plate dl > div:first-child { border-top: none; padding-top: 4px; }
.hero-plate dt { color: var(--muted); font-size: 14px; }
.hero-plate dd {
  margin: 0; font-family: var(--mono); font-weight: 700;
  font-size: 28px; letter-spacing: -0.02em; color: var(--text); line-height: 1;
}
.hero-plate > a {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); border-bottom: 1px solid var(--border-2);
  align-self: flex-start; transition: color .15s, border-color .15s;
}
.hero-plate > a:hover { color: var(--text); border-color: var(--faint); }
/* mobile / tablet: same facts as one subdued wrapping row under the CTAs */
.hero-proof-inline {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
  margin: 24px 0 0;
  font-family: var(--mono); font-size: 13px; color: var(--faint);
}
.hero-proof-inline b { color: var(--muted); font-weight: 600; }
.hero-proof-inline a { color: var(--muted); border-bottom: 1px solid var(--border-2); }
.hero-proof-inline a:hover { color: var(--text); }
@media (min-width: 900px) { .hero-proof-inline { display: none; } }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 20px;
}
h1.title {
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 22px;
  font-family: var(--mono);
}
h1.title .accent { color: var(--accent); }
.lede {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 14px;
}
.lede strong { color: var(--text); font-weight: 600; }
.subline { color: var(--faint); max-width: 600px; margin: 0 0 34px; font-size: 16px; }

/* ---- Buttons ---- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: all .15s;
}
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--faint); background: var(--surface); }

/* ---- Sections ---- */
section { padding: 56px 0; border-top: 1px solid var(--border); }
.section-label {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.02em; margin: 0 0 28px; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
p.section-intro { color: var(--muted); max-width: 620px; margin: -14px 0 28px; }

/* ---- Tenets ---- */
.tenets { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tenet { background: var(--surface); padding: 20px 22px; }
.tenet b { color: var(--text); }
.tenet span { color: var(--muted); }

/* ---- Inside grid ---- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .15s;
}
.card:hover { border-color: var(--border-2); }
.card .k { font-family: var(--mono); color: var(--accent); font-size: 13px; margin: 0 0 10px; }
.card h3 { margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---- Code / quickstart ---- */
.code {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre;
  max-width: 100%;
  overflow-x: auto;
}
.code .c { color: var(--faint); }
.code .p { color: var(--accent); }
/* copy button lives in a positioned shell; desktop presentation unchanged */
.code-shell { position: relative; }
.copy-command {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; line-height: 1;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.copy-command:hover { color: var(--text); border-color: var(--faint); }
.copy-command .copy-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--faint); transition: background .15s;
}
.copy-command.copied { color: var(--text); }
.copy-command.copied .copy-dot { background: var(--accent); }

/* ---- Proof strip ---- */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; }
.stat .n { font-family: var(--mono); font-size: clamp(48px, 7vw, 72px); font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1; }
.stat .n.ver { font-size: clamp(26px, 4.4vw, 40px); letter-spacing: -0.02em; }
.stat .l { color: var(--muted); font-size: 12px; margin-top: 14px; text-transform: uppercase; letter-spacing: 0.09em; }
.stat.hot { border-color: rgba(255, 59, 48, 0.4); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
.stat.hot .n { color: var(--accent); }
.proof-note { color: var(--faint); font-size: 13px; margin-top: 16px; }
.proof-note a { color: var(--muted); border-bottom: 1px solid var(--border-2); }

/* ---- Links list ---- */
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.link-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; transition: border-color .15s;
}
.link-card:hover { border-color: var(--accent); }
.link-card .t { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.link-card .d { color: var(--muted); font-size: 13px; }
.link-card .arrow { color: var(--accent); }
.soon { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--border-2); border-radius: 4px; padding: 1px 6px; }

/* ---- Prose (about) ---- */
.prose { max-width: 680px; }
.prose p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.prose p strong, .prose b { color: var(--text); }
.prose h2 { margin-top: 40px; }
.prose ul { color: var(--muted); padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--text); border-bottom: 1px solid var(--accent); }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 16px 20px; color: var(--muted); margin: 0 0 18px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--faint); font-size: 13px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
  .nav-links { gap: 16px; }
  section { padding: 44px 0; }
  .grid, .links { grid-template-columns: 1fr; }
  .code { font-size: 12.5px; padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
  .copy-command { top: 10px; right: 10px; padding: 5px 9px; }
}
