@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

h1, h2 { font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; line-height: 1.2; }

:root {
  --bg: #0f1117;
  --surface: #171a23;
  --border: #262a36;
  --text: #e8eaf0;
  --muted: #9aa1b2;
  --accent: #266dd3;
  --accent-hover: #1f5bb0;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .9em;
  background: var(--border);
  padding: .15em .45em;
  border-radius: 6px;
}

.topbar {
  --p: 1; /* 0 = at the top of the page, 1 = logo docked in the bar (set by app.js) */
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 23, calc(.82 * var(--p)));
  -webkit-backdrop-filter: blur(calc(12px * var(--p)));
  backdrop-filter: blur(calc(12px * var(--p)));
  border-bottom: 1px solid rgba(38, 42, 54, var(--p));
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(24px, 4vw, 48px);
}
/* Logo parts share the same vertical frame, so equal heights line them up; the gap is a space in the font. */
.brand { display: flex; gap: calc(28px * .2556); text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav nav a:hover { color: var(--text); }
.nav nav { align-items: center; }
.nav .author {
  padding-left: 22px;
  border-left: 1px solid var(--border);
  color: var(--text);
}
.nav .author:hover { color: #4d8be6; }

main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.hero {
  text-align: center;
  padding: 72px 0 88px;
}
.hero-mark {
  --h: clamp(52px, 14vw, 96px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--h) * .3);
  margin: 0 auto 28px;
}
.hero-mark img { display: block; height: var(--h); width: auto; }
.hero-mark .hero-smile { height: calc(var(--h) * .95); }
/* With JS the hero lockup is only a placeholder: the navbar logo flies over it. */
.fly .hero-mark .part-sec { visibility: hidden; }
.fly .brand .part-sec { transform-origin: 0 0; }
.badge {
  display: table;
  margin: 0 auto 24px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .85rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -.02em;
}
.hero h1 span { color: #4d8be6; }
.lead { max-width: 620px; margin: 0 auto 36px; color: var(--muted); font-size: 1.15rem; }
.lead strong { color: var(--text); }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: 1.7rem; margin: 0 0 28px; letter-spacing: -.01em; text-align: center; }
.muted { color: var(--muted); margin: -16px auto 28px; text-align: center; max-width: 760px; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.steps h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }
.num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(38, 109, 211, .18);
  color: var(--accent);
  font-weight: 700;
}

.privacy-lead {
  text-align: center;
  font-size: 1.25rem;
  color: var(--muted);
  margin: -12px 0 40px;
}
.privacy-lead strong { color: var(--text); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  text-align: center;
  padding: 8px 28px;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value {
  display: block;
  font-family: "Lilita One", system-ui, sans-serif;
  font-size: 3.6rem;
  line-height: 1;
  color: #4d8be6;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.stat p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

.picker {
  max-width: 720px;
  margin: 0 auto;
  background: #1e1f24;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.picker-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.picker-head img { border-radius: 6px; }
.picker-item {
  margin: 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
}
.picker-item:hover { background: rgba(255, 255, 255, .06); }
.picker-head + .picker-item { background: rgba(38, 109, 211, .18); }
.picker-head + .picker-item:hover { background: rgba(38, 109, 211, .24); }
.picker-sig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.picker-name { font-weight: 700; color: var(--text); }
.picker-arg {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .8rem;
  color: #a9c6f2;
  background: rgba(38, 109, 211, .15);
  padding: 1px 8px;
  border-radius: 5px;
}
.picker-opt { color: var(--muted); background: rgba(255, 255, 255, .06); }
.picker-item p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.picker-input {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 12px 12px;
  padding: 11px 16px;
  background: #2b2d34;
  border-radius: 10px;
  color: var(--text);
}
.picker-plus {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  color: #2b2d34;
  font-weight: 700;
  line-height: 1;
}
.picker-typed { margin-right: -12px; }
.caret { width: 2px; height: 1.1em; background: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.setup {
  list-style: none;
  padding: 0;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.setup li {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
}
.setup .num { flex: none; }
.setup p { margin: 0; }
.setup a { color: #4d8be6; font-weight: 600; }

.footer {
  max-width: 1040px;
  margin: 40px auto 0;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
}
.footer a { color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.community { text-align: center; }

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); padding-top: 28px; }
  .nav nav a:not(.author) { display: none; }
  .nav .author { padding-left: 0; border-left: 0; }
  .hero { padding: 40px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .caret { animation: none; }
}
