/* Status-page look: calm light surface, indigo for actions, green/amber/red only for live status. */
:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #16171c;
  --muted: #62656e;
  --line: #e6e6e1;
  --line-2: #e0e0da;
  --accent: #4a3aff;
  --ok: #18a058;
  --ok-text: #138a4b;
  --ok-soft: rgba(24, 160, 88, 0.18);
  --degraded: #e3a008;
  --degraded-text: #a86f00;
  --down: #d93636;
  --down-soft: rgba(217, 54, 54, 0.15);
  --pending: #a3a6ae;
  --deep: #16171c;
  --deep-muted: #a3a6ae;
  --font: 'Geologica', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.mono { font-family: var(--mono); }

/* Status strip */
.status-strip {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: #3c3f47;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  background: var(--pending);
}

.is-up .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.is-down .dot { background: var(--down); box-shadow: 0 0 0 3px var(--down-soft); }

@media (prefers-reduced-motion: no-preference) {
  .is-up .dot, .is-down .dot { animation: pulse 2s ease-in-out infinite; }
  .cursor { animation: blink 1.1s steps(1) infinite; }
}

@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes blink { 50% { opacity: 0; } }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(74, 58, 255, 0.25); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }

.btn-light { background: #fff; color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

h1 {
  font-size: 50px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 20px;
  text-wrap: balance;
}

h1 em { font-style: normal; color: var(--accent); }

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 28px;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Live product board */
.board {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(22, 23, 28, 0.04), 0 24px 60px rgba(74, 58, 255, 0.10);
  min-width: 0;
  scroll-margin-top: 90px;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.board-head b { font-size: 15px; }

.board-note { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.product {
  display: grid;
  gap: 8px;
  padding: 12px 8px;
  margin: 0 -8px;
  border-top: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.product:hover { background: var(--bg); }

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.product-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }

.product-main b { font-size: 15px; }

.product-desc { font-size: 13px; color: var(--muted); }

.product-host {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.uptime {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.uptime.is-up { color: var(--ok-text); }
.uptime.is-degraded { color: var(--degraded-text); }
.uptime.is-down { color: var(--down); }

.ticks { display: flex; gap: 2px; height: 22px; }

.ticks i { flex: 1; border-radius: 2px; background: var(--line-2); }

.ticks i.is-up { background: var(--ok); }
.ticks i.is-degraded { background: var(--degraded); }
.ticks i.is-down { background: var(--down); }

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 60px;
}

.section-flush { border-top: 0; padding-top: 0; }

h2 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 10px;
  text-wrap: balance;
}

.sub {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 30px;
}

h3 { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; }

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module, .format {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
}

.module p { font-size: 14px; color: var(--muted); margin: 6px 0 14px; }

.module ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }

.module li::before { content: "› "; color: var(--accent); font-family: var(--mono); }

.pipe {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}

.pipe > div { padding: 22px; border-right: 1px solid var(--line); min-width: 0; }

.pipe > div:last-child { border-right: 0; }

.pipe .mono { font-size: 11px; color: var(--accent); }

.pipe b { display: block; margin: 6px 0 4px; font-size: 17px; }

.pipe p { font-size: 14px; color: var(--muted); }

.repos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.repo {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
}

.repo:hover { border-color: var(--accent); }

.repo .mono { font-size: 11px; color: var(--accent); overflow-wrap: anywhere; }

.repo b { display: block; margin: 6px 0 4px; font-size: 17px; }

.repo p { font-size: 14px; color: var(--muted); }

.formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.format p { font-size: 15px; color: var(--muted); margin-top: 6px; }

.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.principles li { padding-left: 24px; position: relative; }

.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ok-soft);
  box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 14px var(--ok);
}

/* One light panel split by 1px hairlines (the gap shows the panel's line-colored background),
   so #contact stays the only dark block at the bottom of the page. */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}

.metric {
  background: var(--card);
  padding: 22px;
}

.metric b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }

.metric span { font-size: 13px; color: var(--muted); }

/* Contact */
.term {
  background: var(--deep);
  color: #fff;
  border-radius: 16px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.term h2 { color: #fff; }

.term-copy { min-width: 0; }

.term-copy p { color: var(--deep-muted); max-width: 52ch; margin-bottom: 18px; }

.term-line { font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }

.prompt { color: #3ddc84; }

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -3px;
  background: #3ddc84;
}

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 40px 0 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}

.footer-grid p { margin: 6px 0 8px; max-width: 52ch; }

.footer-grid b { color: var(--ink); }

#hiring a { color: var(--accent); font-weight: 600; }

.footer-bottom { margin-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .modules, .pipe, .principles { grid-template-columns: 1fr; }
  .pipe > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipe > div:last-child { border-bottom: 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .hero { padding: 36px 0 48px; }
  .section { padding: 48px 0; }
  .formats, .repos, .footer-grid { grid-template-columns: 1fr; }
  .term { padding: 26px; }
  .nav .btn { padding: 9px 14px; font-size: 14px; }
}
