:root {
  --bg: #f6faf7;
  --surface: #ffffff;
  --ink: #26262e;
  --muted: #5f6470;
  --line: #e3ebe6;
  --green: #2bbf6f;
  --green-dark: #1e8f52;
  --mint: #dff8ea;
  --pink: #ff8fab;
  --code: #1f2027;
  --code-ink: #e8f5ec;
  --shadow: 0 10px 30px rgba(38, 38, 46, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161b;
    --surface: #1f2027;
    --ink: #eef0f3;
    --muted: #a3a8b3;
    --line: #2d2f38;
    --mint: #1d3a2b;
    --code: #0f1014;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dark); }
@media (prefers-color-scheme: dark) { a { color: var(--green); } }
img { max-width: 100%; height: auto; }
code {
  font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--mint);
  padding: .1em .4em;
  border-radius: 6px;
}

/* top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, calc((100vw - 1100px) / 2));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.pill {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.pill:hover { border-color: var(--green); }

/* hero */
main { padding: 0 16px; }
.hero { max-width: 1000px; margin: 0 auto; padding: 48px 0 24px; text-align: center; }
.mascot { width: 160px; height: 160px; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(43, 191, 111, .25)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.hero h1 { font-size: clamp(44px, 8vw, 72px); line-height: 1; margin: 12px 0 8px; letter-spacing: -1px; }
.wave { display: inline-block; font-size: .7em; vertical-align: middle; }
.tagline { font-size: clamp(18px, 2.6vw, 22px); color: var(--muted); max-width: 620px; margin: 0 auto 18px; }
.tagline b { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.chip { background: var(--mint); color: var(--green-dark); font-weight: 700; font-size: 13.5px; padding: 4px 12px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .chip { color: #7ee3ad; } }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.primary { background: var(--green); color: #fff; border-color: var(--green); }

/* screenshots */
.shot { margin: 0 auto; max-width: 960px; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(38, 38, 46, .18); border: 1px solid var(--line); background: var(--surface); }
.shot img { display: block; width: 100%; }
.frame { display: flex; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.frame span { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; }
.frame span:nth-child(2) { background: #ffcc4d; }
.frame span:nth-child(3) { background: var(--green); }
.shot.small { box-shadow: var(--shadow); }
.shot.center { margin-top: 32px; max-width: 820px; }

/* sections */
.section { max-width: 1000px; margin: 0 auto; padding: 56px 0; }
.section h2 { font-size: clamp(28px, 4.5vw, 38px); margin: 0 0 8px; letter-spacing: -.5px; text-align: center; }
.lead { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 28px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.card .ico { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }
.split h2 { text-align: left; }
.split p { color: var(--muted); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split h2 { text-align: center; }
}

/* install */
.code { position: relative; max-width: 860px; margin: 0 auto; background: var(--code); border-radius: 14px; }
.code pre { margin: 0; padding: 18px 90px 18px 20px; overflow-x: auto; }
.code code { background: none; padding: 0; color: var(--code-ink); font-size: 14.5px; white-space: pre; }
.copy {
  position: absolute; top: 10px; right: 10px;
  border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
  background: var(--green); color: #fff; font: inherit; font-size: 13px; font-weight: 700;
}
.copy.done { background: var(--pink); }
.steps { max-width: 700px; margin: 24px auto 0; padding-left: 22px; color: var(--muted); }
.steps li { margin: 6px 0; }
.alt { max-width: 860px; margin: 20px auto 0; display: grid; gap: 10px; }
.alt details, .faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.alt summary, .faq summary { cursor: pointer; font-weight: 700; }
.alt details .code { margin-top: 12px; }
.alt details p { color: var(--muted); margin: 10px 0 0; }

/* commands */
.table { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.table > div { display: grid; grid-template-columns: 110px 120px 1fr; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.table > div:last-child { border-bottom: 0; }
.table span { color: var(--muted); font-size: 15px; }
.table code { justify-self: start; }
@media (max-width: 560px) {
  .table > div { grid-template-columns: auto auto; }
  .table span { grid-column: 1 / -1; }
  .top nav { display: none; }
}

/* faq */
#faq { max-width: 760px; }
.faq { margin-bottom: 10px; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* footer */
.foot { text-align: center; padding: 40px 16px 56px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 24px; }
.foot img { border-radius: 50%; }
.foot p { margin: 6px 0; }
.small { font-size: 13px; }

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