/* get.hiveloom.cloud — hand-written, no framework, no build step. */

:root {
  --bg: #090d12;
  --bg-alt: #0d131a;
  --surface: #111922;
  --code: #080c11;
  --border: #202b37;
  --border-soft: #17202a;
  --text: #e7edf4;
  --muted: #97a4b1;
  --faint: #697786;
  --accent: #58d5ff;
  --accent-soft: rgba(88, 213, 255, 0.1);
  --accent-ink: #031117;
  --good: #70e1a1;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

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

.wrap {
  width: min(68rem, calc(100% - 3rem));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 3.75rem;
  padding: 0 1.5rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 6px; }

.topnav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.88rem;
}

.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--text); text-decoration: none; }

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

/* Hero */

.hero {
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 7rem 0 5rem;
  text-align: center;
  background: radial-gradient(ellipse 65% 45% at 50% 0%, rgba(88, 213, 255, 0.11), transparent 75%);
}

.eyebrow,
.kicker,
.boundary-label,
.card-number {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--faint);
  font-size: 0.75rem;
}

.hero h1 {
  max-width: 62rem;
  margin: 0 auto;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 span { color: var(--accent); }

.lede {
  max-width: 45rem;
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cta.left { justify-content: flex-start; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.btn:hover { border-color: var(--accent); text-decoration: none; }

.btn-primary {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover { background: #82e1ff; border-color: #82e1ff; }

.install {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 0.5rem 0.55rem 0.5rem 1rem;
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.install code {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.copy {
  padding: 0.25rem 0.55rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.copy:hover { color: var(--text); }

.boundary {
  max-width: 60rem;
  margin: 4.5rem auto 0;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, rgba(88, 213, 255, 0.06), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.23);
}

.boundary-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.7rem;
}

.agent-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
}

.equation-term {
  min-width: 10rem;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.equation-term strong,
.equation-term span { display: block; }

.equation-term strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.equation-term span {
  margin-top: 0.25rem;
  color: var(--faint);
  font-size: 0.72rem;
}

.equation-harness {
  min-width: 18rem;
  background: var(--accent-soft);
  border-color: var(--accent);
}

.equation-harness strong { color: var(--accent); }

.equation-result strong { color: var(--good); }

.agent-equation > b {
  color: var(--faint);
  font-family: var(--mono);
  font-weight: 400;
}

.boundary-result {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.boundary-result strong { color: var(--good); }

/* Sections */

.band {
  padding: 6rem 0;
  border-top: 1px solid var(--border-soft);
}

.band.alt { background: var(--bg-alt); }

.kicker {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.72rem;
}

.band h2,
.closing h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-copy {
  max-width: 36rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.card {
  min-height: 13rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.card-number {
  margin: 0 0 2.2rem;
  color: var(--accent);
  font-size: 0.7rem;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.honesty {
  max-width: 54rem;
  margin-top: 1.5rem;
  padding-left: 1rem;
  color: var(--faint);
  border-left: 2px solid var(--border);
  font-size: 0.85rem;
}

.honesty strong { color: var(--muted); }

/* Evidence */

.builder-grid,
.proof-grid,
.start-grid,
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  gap: 5rem;
  align-items: center;
}

.agent-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.agent-flow li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.2rem;
}

.agent-flow li + li { border-top: 1px solid var(--border); }

.agent-flow li > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.agent-flow strong,
.agent-flow small { display: block; }

.agent-flow strong { font-size: 0.9rem; }

.agent-flow small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.9rem;
}

.metrics {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.metrics > div {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
}

.metrics > div + div { border-top: 1px solid var(--border); }

.metrics dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.metrics dd {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--mono);
  text-align: right;
}

.metrics dd span { color: var(--faint); }
.metrics dd b { color: var(--faint); font-weight: 400; }
.metrics dd strong { color: var(--good); }

/* Start and workbench */

pre.code {
  margin: 0;
  padding: 1.4rem 1.5rem;
  overflow-x: auto;
  color: var(--text);
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.72;
}

pre.code .comment { color: var(--faint); }

.workbench {
  grid-template-columns: minmax(17rem, 0.65fr) minmax(0, 1.35fr);
}

.workbench img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.inline-command {
  display: table;
  margin-top: 1.5rem;
  padding: 0.5rem 0.7rem;
  color: var(--text);
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* Close */

.closing {
  padding: 7rem 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

.sitefoot {
  padding: 1.7rem 0;
  color: var(--faint);
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
}

.sitefoot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.sitefoot p { margin: 0; }
.sitefoot a { margin-left: 1.2rem; color: var(--muted); }

/* Responsive */

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-number { margin-bottom: 1.2rem; }

  .builder-grid,
  .proof-grid,
  .start-grid,
  .workbench {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .workbench-copy { order: 0; }
  .workbench img { order: 1; }

  .agent-equation { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .topbar { padding: 0 1rem; }
  .menu-toggle { display: block; }

  .topnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  body.nav-open .topnav { display: flex; }
  .topnav a { padding: 0.65rem 1rem; }
  .topnav a + a { border-top: 1px solid var(--border-soft); }

  .wrap,
  .hero { width: min(100% - 2rem, 68rem); }
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
  .band { padding: 4.25rem 0; }
  .closing { padding: 5rem 0; }

  .cta .btn { flex: 1 1 12rem; text-align: center; }
  .cta.left { justify-content: center; }
  .install { width: 100%; justify-content: space-between; }

  .boundary { margin-top: 3rem; padding: 1.3rem 1rem; }
  .agent-equation { flex-direction: column; }
  .equation-term { width: 100%; min-width: 0; }

  .metrics > div { grid-template-columns: 1fr; gap: 0.35rem; }
  .metrics dd { text-align: left; }

  .sitefoot .wrap { flex-direction: column; }
  .sitefoot a { margin: 0 1rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
