:root {
  --bg: #07090f;
  --bg-2: #0c1018;
  --card: #111722;
  --card-border: rgba(148, 163, 184, 0.12);
  --text: #e8edf7;
  --muted: #9aa8bd;
  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --radius: 16px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(500px 350px at 90% 10%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(79, 140, 255, 0.1), transparent 60%);
  z-index: 0;
}

main, .nav, .footer { position: relative; z-index: 1; }

a { color: inherit; }

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-github {
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 auto 18px;
  max-width: 18ch;
}
@media (min-width: 700px) { .hero h1 { max-width: 22ch; } }

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 640px;
  margin: 0 auto 28px;
}
.lead strong { color: var(--text); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3b6fe0);
  color: #fff;
  box-shadow: 0 10px 30px rgba(79, 140, 255, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(79, 140, 255, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(148,163,184,0.28); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 44px;
}
.hero-meta strong { color: var(--text); }
.dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(154, 168, 189, 0.45);
}

/* fake keyboard */
.keyboard-card {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(180deg, #141b28, #0e131d);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 14px 16px 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: left;
}
.kb-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.kb-dot { width: 9px; height: 9px; border-radius: 50%; background: #2a3446; }
.kb-dot:nth-child(1) { background: #ff5f57; }
.kb-dot:nth-child(2) { background: #febc2e; }
.kb-dot:nth-child(3) { background: #28c840; }
.kb-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}
.kb-suggest {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.18);
  border-radius: 10px;
  font-size: 13px;
}
.sug {
  color: var(--muted);
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}
.sug.on {
  color: #fff;
  background: rgba(79, 140, 255, 0.45);
  font-weight: 600;
}
.sug.bi { margin-left: auto; color: var(--accent-2); background: rgba(34,211,238,0.1); }
.kb-rows { display: grid; gap: 8px; }
.kb-row { display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; }
kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  min-width: 34px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a2231;
  border: 1px solid rgba(148,163,184,0.16);
  border-bottom-width: 3px;
  border-radius: 8px;
  color: var(--text);
  flex: 1;
  max-width: 44px;
}
kbd.mod { background: #243044; color: #9ec1ff; font-size: 11px; }
kbd.space { max-width: none; flex: 4; color: var(--muted); font-size: 11px; }
kbd.wide { flex: 1.6; }
@media (max-width: 560px) {
  kbd { min-width: 0; height: 32px; font-size: 10px; border-radius: 6px; }
  kbd.space { flex: 3; }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 24px;
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(79, 140, 255, 0.35);
  transform: translateY(-2px);
}
.card-icon { font-size: 22px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.18);
  color: #b7d0ff;
  padding: 1px 6px;
  border-radius: 6px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.note {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #f5df9a;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14.5px;
}
.note strong { color: #fde68a; }

.specs .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 28px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
td:first-child { color: var(--muted); }
tbody td:nth-child(2) { color: var(--ok); font-weight: 500; }

.dl-2 {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.footer {
  margin-top: 64px;
  border-top: 1px solid var(--card-border);
  background: rgba(0,0,0,0.25);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.footer-brand { margin-bottom: 8px; }
.footer p { color: var(--muted); font-size: 14px; margin: 0; max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-start; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a:hover { color: var(--text); }
.copy {
  text-align: center;
  color: rgba(154, 168, 189, 0.65);
  font-size: 12.5px;
  padding: 8px 24px 28px;
  margin: 0;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-github) { display: none; }
  .hero { padding-top: 36px; }
}
