:root {
  --bg: #0e0f10;
  --bg-soft: #16181a;
  --card: #1c1f22;
  --line: #2a2e32;
  --text: #f2f4f3;
  --muted: #a3aaa6;
  --green: #6cc24a;
  --green-dim: #4e9a33;
  --radius: 18px;
  --max: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8f6;
    --bg-soft: #eef1ec;
    --card: #ffffff;
    --line: #dfe4dc;
    --text: #141614;
    --muted: #5d655f;
    --green: #3f9a22;
    --green-dim: #2f7a18;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
nav a { color: var(--muted); margin-left: 22px; font-size: 15px; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 80px 0 40px; text-align: center; }
.hero img.icon { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 28px 0 14px; }
.hero h1 span { color: var(--green); }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #0b0c0b; font-weight: 700;
  padding: 13px 24px; border-radius: 999px;
}
.button:hover { background: var(--green-dim); text-decoration: none; color: #fff; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--green); color: var(--green); }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Screens */
.screens { display: flex; gap: 20px; justify-content: center; align-items: flex-start; padding: 40px 0 20px; overflow-x: auto; }
.screens figure { margin: 0; flex: 0 0 auto; }
.screens img {
  display: block; height: 440px; width: auto;
  border-radius: 20px; border: 6px solid #000;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  background: #fff;
}
.screens figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 720px) { .screens { justify-content: flex-start; } .screens img { height: 340px; } }

/* Sections */
section { padding: 60px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.01em; margin: 0 0 10px; }
section p.sub { color: var(--muted); margin: 0 0 36px; max-width: 680px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card .ficon { width: 48px; height: 48px; display: block; }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; border-radius: 18px; border: 6px solid #000; box-shadow: 0 25px 60px rgba(0,0,0,.3); }
.split ul { padding-left: 20px; color: var(--muted); }
.split li { margin: 6px 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Docs pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc .callout {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }

details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin: 10px 0;
}
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--green); font-weight: 700; }
details.faq[open] summary::after { content: "–"; }
details.faq p, details.faq ol, details.faq ul { color: var(--muted); margin-bottom: 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--muted); margin-left: 18px; }
footer.site a:first-child { margin-left: 0; }
footer.site a:hover { color: var(--text); }
