:root {
  --bg: #f7f9fb;
  --bg-raise: #eef1f6;
  --panel: #ffffff;
  --border: #dde3ec;
  --text: #1c2430;
  --muted: #5c6878;
  --accent: #4a82dd;
  --accent-dim: #3a6cc2;
  --mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* subtle dot grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, #dbe2ec 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -1;
}

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

code, kbd, .mono { font-family: var(--mono); }

kbd {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--panel);
  font-size: 0.85em;
  color: var(--text);
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.nav .brand:hover { text-decoration: none; }
.nav .brand img { width: 32px; height: 32px; }
.nav .brand .slash { color: var(--accent); }

.nav .brand .brand-tag {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav .links {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.nav .links a {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.6rem 0.15rem;
}
.nav .links a:hover, .nav .links a.active { color: var(--text); text-decoration: none; }
.nav .links a.active { color: var(--accent-dim); }

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 5rem;
}

.hero .trigger {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 14rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero .trigger .slash { color: var(--accent); }

.hero .trigger .caret {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .slogan {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  color: var(--muted);
  letter-spacing: 0.35em;
  text-transform: lowercase;
}

.hero .pitch {
  margin-top: 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero .pitch strong { color: var(--text); }

.hero .cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost { color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-disabled {
  color: var(--muted);
  background: var(--bg-raise);
  cursor: default;
}
.btn-disabled:hover { transform: none; text-decoration: none; }

/* ---------- feature strip ---------- */
.features {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.features .section-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.features .section-title .slash { color: var(--accent); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(28, 36, 48, 0.08);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
}
.card h3 .slash { color: var(--accent); }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- content pages ---------- */
.page {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.page h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.page h1 .slash { color: var(--accent); }
.page .lede { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; }

.page h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1rem;
}
.page p { margin-bottom: 1rem; }
.page ul, .page ol { margin: 0 0 1rem 1.4rem; }
.page li { margin-bottom: 0.4rem; }
.page .muted { color: var(--muted); }

pre {
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
pre code { color: var(--text); }
.code-comment { color: var(--muted); }

/* numbered steps */
.steps { counter-reset: step; list-style: none; margin-left: 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}
.steps li strong { display: block; margin-bottom: 0.25rem; }
.steps li p { color: var(--muted); margin-bottom: 0.5rem; }

/* demo bubble on home */
.demo {
  margin: 3rem auto 0;
  max-width: 540px;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.88rem;
}
.demo .bar {
  display: flex;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raise);
}
.demo .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.demo .body { padding: 1.1rem 1.25rem; line-height: 1.8; }
.demo .dim { color: var(--muted); }
.demo .acc { color: var(--accent); }
.demo .reply { color: var(--accent-dim); font-weight: 700; }

/* download platform cards */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.platform {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.platform:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(28, 36, 48, 0.08);
  transform: translateY(-2px);
}
.platform .note { flex: 1; }
.platform .btn { margin-top: auto; }
.platform .icon { font-size: 2.2rem; line-height: 1; }
.platform .icon img { width: 36px; height: 36px; vertical-align: middle; }
.platform h3 { margin: 0.75rem 0 0.25rem; }
.platform .note { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.25rem; }
.platform .btn { width: 100%; }
.platform.primary { border-color: var(--accent-dim); background: #f3f7fe; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-bottom: 0.5rem;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer .slash { color: var(--accent); }

@media (max-width: 720px) {
  .nav .brand .brand-tag { display: none; }
}

@media (max-width: 540px) {
  .nav { gap: 0.75rem; padding: 1rem; }
  .nav .links { gap: 0.85rem; }
  .nav .links a { font-size: 0.9rem; }
  .hero .slogan { letter-spacing: 0.2em; }
}
