:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #22c55e;
  --green-deep: #16a34a;
  --band: rgba(34, 197, 94, 0.22);
  --panel: #e8eef4;
  --bg: #ffffff;
  --font: "Outfit", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.55;
}

a { color: inherit; }

.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 28px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fade-in 0.5s ease both;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.logo-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: #4b5563;
}
.nav a {
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }

.hero {
  max-width: 820px;
  margin: 36px auto 0;
  padding: 0 28px;
  text-align: center;
  animation: rise 0.65s ease both;
}
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.hero-lead {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
}
.cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost {
  background: #fff;
  border-color: #d1d5db;
  color: var(--ink);
}

.stage {
  position: relative;
  max-width: 920px;
  margin: 48px auto 0;
  padding: 40px 28px 20px;
  display: grid;
  place-items: center;
  animation: rise 0.75s 0.08s ease both;
}
.band {
  position: absolute;
  inset: 18% -8% 28%;
  background: var(--band);
  transform: skewY(-7deg);
  pointer-events: none;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #0f1720;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(15, 23, 32, 0.28),
    0 2px 0 rgba(255,255,255,0.06) inset;
  color: #e8eef4;
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #152029;
  border-bottom: 1px solid #243040;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.phone-title {
  margin-left: 8px;
  font-size: 12px;
  color: #9aafc0;
}
.phone-body { padding: 16px 14px 12px; }
.preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mini-b {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1e88e5;
  background: #1a2733;
  border: 1px solid #2d4458;
}
.preview-head strong {
  display: block;
  font-size: 16px;
}
.preview-head small {
  color: #c4a574;
  font-size: 11px;
}
.preview-box {
  border: 1px solid #2a3d4e;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 72px;
  font-size: 13px;
  color: #7d93a6;
  background: rgba(255,255,255,0.03);
  margin-bottom: 12px;
}
.preview-ime {
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  color: #1c2833;
}
.p-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: #dfe7ef;
  font-size: 13px;
  color: #37474f;
}
.p-chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #1e88e5;
  background: #fff;
  border: 1px solid #c5d3e0;
}
.grow { flex: 1; }
.p-toolbar .on {
  background: #1e88e5;
  color: #fff;
  padding: 4px 8px;
  border-radius: 7px;
  font-weight: 600;
}
.p-keys {
  padding: 4px 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.p-row {
  display: flex;
  gap: 3px;
  padding: 0 3px;
}
.p-key {
  flex: 1;
  min-height: 32px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 #b0bec5;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.p-key.sp { background: #cfd8e3; font-size: 11px; }
.p-key.enter { background: #1e88e5; color: #fff; flex: 1.3; }
.p-key.space { flex: 3.4; font-size: 10px; color: #5d6d7e; }

.tabs {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  animation: fade-in 0.6s 0.15s ease both;
}
.tab {
  border: 0;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.tab.on {
  background: var(--green);
  color: #fff;
}

.panels {
  max-width: 640px;
  margin: 18px auto 0;
  padding: 0 28px;
  min-height: 96px;
}
.panel { display: none; text-align: center; }
.panel.on { display: block; animation: fade-in 0.35s ease both; }
.panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.changelog, .download {
  max-width: 640px;
  margin: 48px auto 0;
  padding: 0 28px;
}
.changelog h2, .download h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.changelog ul {
  margin: 0;
  padding-left: 1.2em;
  color: #374151;
  font-size: 14px;
}
.changelog li { margin: 6px 0; }
.download p {
  color: var(--muted);
  font-size: 14px;
}
.download code {
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 6px;
}

.site-foot {
  max-width: 1080px;
  margin: 56px auto 28px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.site-foot a {
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 600;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .hero { margin-top: 24px; }
  .stage { padding-top: 28px; }
  .band { inset: 22% -20% 32%; }
}
