/* Averin site — the palette and type of averin/apps/website, kept static. */
/* Geist is self-hosted (SIL OFL): no third-party requests from this site. */
@font-face { font-family: Geist; src: url("/fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url("/fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url("/fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #f7f5fb;
  --muted: #9b98a8;
  --dim: #6f6b7c;
  --night: #07070d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --violet: #8178f6;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% -20%, rgba(113, 85, 185, 0.14), transparent 32rem), var(--night);
  color: var(--ink);
  font-family: Geist, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(129, 120, 246, 0.4); }
a { color: inherit; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a, .footer a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color 180ms ease; }
.nav-links a:hover, .footer a:hover { color: var(--ink); }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 28px; }

.hero { padding: 96px 0 72px; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
h1 {
  margin: 28px auto 20px;
  max-width: 14ch;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
h1 span { color: var(--violet); }
.lede { max-width: 38rem; margin: 0 auto; color: var(--muted); font-size: 18px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding-bottom: 96px;
}
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}
.card h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.doc { max-width: 44rem; margin: 0 auto; padding: 56px 0 96px; }
.doc h1 { margin: 0 0 6px; max-width: none; font-size: clamp(34px, 5vw, 46px); }
.doc .updated { margin: 0 0 40px; color: var(--dim); font-size: 14px; }
.doc h2 { margin: 40px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.doc p, .doc li { color: #c9c6d4; font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}
.footer nav { display: flex; gap: 22px; }
