/* SILINT homepage. Tokens follow the shell's Registry night mode
   (apps/shell/ui/shell.css): neutral near-black, cobalt accent, Archivo with
   the system stack standing in. No external requests. */

:root {
  --font: "Archivo", "Archivo Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --bg: #0f1012;
  --surface: #16171a;
  --ink: #e9e7e1;
  --muted: #9b9b94;
  --faint: #6c6c66;
  --rule: #2b2c31;
  --accent: #4f7cff;
  --accent-ink: #0b0c0f;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

/* -- top ---------------------------------------------------------------------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
}
.wordmark {
  font-weight: 600; font-size: 15px; letter-spacing: 0.34em;
}
.wordmark.small { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 14px; color: var(--muted); }
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--ink); }
.nav-signin {
  color: var(--ink); padding: 7px 16px;
  border: 1px solid var(--rule); border-radius: 4px;
  transition: border-color 0.2s ease;
}
.nav-signin:hover { border-color: var(--accent); }

/* -- hero --------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px var(--gutter) 96px;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  background: var(--bg) url("assets/hero.jpg") center right / cover no-repeat;
  opacity: 0; animation: settle 2.4s ease 0.1s forwards;
}
.hero-image::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(15, 16, 18, 0.82) 38%, rgba(15, 16, 18, 0.15) 100%),
    linear-gradient(180deg, rgba(15, 16, 18, 0) 70%, var(--bg) 100%);
}
.hero-copy { position: relative; max-width: 620px; }
.hero-copy > * { opacity: 0; transform: translateY(10px); animation: rise 0.9s ease forwards; }
.hero-copy > :nth-child(1) { animation-delay: 0.25s; }
.hero-copy > :nth-child(2) { animation-delay: 0.4s; }
.hero-copy > :nth-child(3) { animation-delay: 0.55s; }
.hero-copy > :nth-child(4) { animation-delay: 0.7s; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
h1 {
  font-size: clamp(44px, 7.4vw, 92px); line-height: 1.02;
  font-weight: 500; letter-spacing: -0.035em;
}
.lede {
  margin-top: 28px; max-width: 520px;
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: #c4c2bb;
}
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.button {
  display: inline-block; padding: 13px 24px; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover { background: #6a90ff; transform: translateY(-1px); }
.quiet-link { font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: color 0.2s ease, border-color 0.2s ease; }
.quiet-link:hover { color: var(--ink); border-color: var(--accent); }

/* -- sections ----------------------------------------------------------------- */
.principles, .who, .security, .closing {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter);
}

.principles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  padding-top: 0;
}
.principle { padding: 44px 36px 56px 0; }
.principle + .principle { padding-left: 36px; border-left: 1px solid var(--rule); }
.num { font: 12px var(--mono); color: var(--accent); }
.principle h2 { margin: 18px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.principle p { color: var(--muted); font-size: 15px; }

.who, .security { padding-top: clamp(88px, 12vw, 160px); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.display {
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1;
  font-weight: 500; letter-spacing: -0.028em;
}
.section-lede { margin-top: 22px; color: var(--muted); font-size: 17px; max-width: 540px; }

.kinds { border-top: 1px solid var(--rule); }
.kinds li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
  font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em;
  transition: padding-left 0.3s ease;
}
.kinds li:hover { padding-left: 10px; }
.kind-note { font-size: 14px; letter-spacing: 0; color: var(--muted); text-align: right; }
.kinds li:last-child > span:first-child { color: var(--muted); font-style: italic; }

.measures {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
}
.measures > div { background: var(--bg); padding: 30px 32px 34px; transition: background 0.25s ease; }
.measures > div:hover { background: var(--surface); }
.measures dt { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.measures dt::before {
  content: ""; display: inline-block; width: 14px; height: 2px;
  background: var(--accent); vertical-align: middle; margin-right: 12px;
}
.measures dd { color: var(--muted); font-size: 15px; }

.closing { padding-top: clamp(104px, 14vw, 190px); padding-bottom: clamp(104px, 14vw, 190px); text-align: center; }
.closing .actions { justify-content: center; }

/* -- foot --------------------------------------------------------------------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 26px var(--gutter); border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--faint);
}

/* -- motion ------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-copy > *, .hero-image { opacity: 1; transform: none; animation: none; transition: none; }
}

/* -- narrow ------------------------------------------------------------------- */
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 36px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--rule); }
  .measures { grid-template-columns: 1fr; }
  .kinds li { flex-direction: column; gap: 4px; }
  .kind-note { text-align: left; }
  .nav a:not(.nav-signin) { display: none; }
  .hero-image::after {
    background:
      linear-gradient(180deg, rgba(15, 16, 18, 0.72) 0%, rgba(15, 16, 18, 0.6) 55%, var(--bg) 100%);
  }
}
