:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #15172b;
  --muted: #5d6280;
  --line: #e3e5f0;
  --accent-1: #6a4cf2;
  --accent-2: #1a9ef2;
  --accent: #4a6cf2;
  --check: #4a6cf2;
  --shadow: 0 1px 2px rgba(20, 24, 60, .06), 0 8px 24px rgba(20, 24, 60, .08);
  --menu-bg: rgba(246, 246, 250, .92);
  --coffee-bg: #ffdd00;
  --coffee-text: #1d1d1d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1020;
    --surface: #181a30;
    --text: #eef0fb;
    --muted: #a2a7c6;
    --line: #2a2d4a;
    --accent: #8aa0ff;
    --check: #8aa0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --menu-bg: rgba(40, 42, 64, .92);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1020;
  --surface: #181a30;
  --text: #eef0fb;
  --muted: #a2a7c6;
  --line: #2a2d4a;
  --accent: #8aa0ff;
  --check: #8aa0ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --menu-bg: rgba(40, 42, 64, .92);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
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(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 520px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-1) 22%, transparent), transparent),
              radial-gradient(closest-side at 70% 40%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent);
  z-index: -1;
}
.hero img.icon { width: 152px; height: 152px; filter: drop-shadow(0 12px 24px rgba(40, 50, 140, .25)); }
h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 20px 0 12px;
}
.kicker {
  margin: -4px 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tagline {
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}
.tagline strong { color: var(--text); font-weight: 600; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 17px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 8px 20px rgba(74, 108, 242, .35);
}
.btn-coffee { background: var(--coffee-bg); color: var(--coffee-text); box-shadow: 0 8px 20px rgba(255, 200, 0, .25); }
.btn svg { width: 20px; height: 20px; flex: none; }
.meta { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: 28px; letter-spacing: -.01em; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; }

/* Problem / solution demo */
.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.menu {
  background: var(--menu-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  font-size: 14px;
  max-width: 300px;
  justify-self: center;
  width: 100%;
  backdrop-filter: blur(20px);
}
.menu .item { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 6px; }
.menu .item.indent { padding-left: 24px; }
.menu .item .tick { width: 14px; color: var(--check); font-weight: 700; }
.menu .header { color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 10px 2px; }
.menu .sep { height: 1px; background: var(--line); margin: 5px 8px; }
.menu .item.hover { background: var(--accent); color: #fff; }
.menu .item.hover .tick { color: #fff; }

.axes { display: grid; gap: 12px; }
.axis {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.axis .glyph {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}
.axis .glyph svg { width: 24px; height: 24px; }
.axis b { display: block; font-size: 16px; }
.axis span { color: var(--muted); font-size: 14px; line-height: 1.4; display: block; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Steps */
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}
ol.steps li b { display: block; }
ol.steps li span { color: var(--muted); font-size: 15px; }
kbd, code {
  font: 14px ui-monospace, SFMono-Regular, Menlo, monospace;
  background: color-mix(in srgb, var(--line) 60%, transparent);
  padding: 1px 6px;
  border-radius: 5px;
  word-break: break-word;
}

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

/* Support */
.support {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 20px;
  box-shadow: var(--shadow);
}
.support p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

footer {
  padding: 40px 0 56px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 4px 0; }

@media (max-width: 680px) {
  .hero { padding: 48px 0 40px; }
  .hero img.icon { width: 120px; height: 120px; }
  .demo { grid-template-columns: 1fr; }
  section { padding: 36px 0; }
}

/* Top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.topbar .brand img { width: 28px; height: 28px; }
.topbar nav { display: flex; gap: 20px; font-size: 15px; }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.hero { padding-top: 32px; }

/* Other projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
a.project {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  color: var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
a.project:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
a.project img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
a.project h3 { font-size: 16px; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
a.project p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.badge.soon { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }

/* Contact form */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form textarea, .form select {
  font: inherit; font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.form .error { color: #d93a3a; font-weight: 400; font-size: 13px; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button { border: 0; cursor: pointer; justify-self: start; }
.form button[disabled] { opacity: .6; cursor: progress; transform: none; }
.notice { border-radius: 14px; padding: 14px 18px; font-size: 15px; border: 1px solid var(--line); background: var(--surface); }
.notice.ok { border-color: #2fa36b; }
.notice.fail { border-color: #d93a3a; }
[hidden] { display: none !important; }
