:root {
  --bg: #ffffff;
  --ink: #1a1d21;
  --muted: #6b7280;
  --line: #e8eaed;
  --green: #22c55e;
  --green-deep: #16a34a;
  --green-soft: #dcfce7;
  --app-bg: #1a1b1e;
  --app-panel: #1e1f23;
  --app-text: #e8e8ea;
  --app-dim: #8b8d97;
  --font: "DM Sans", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.brand-name { font-size: 18px; letter-spacing: -0.02em; }
.brand-ver { font-size: 12px; color: var(--muted); font-weight: 500; }

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}

.nav-links a:hover { color: var(--green-deep); }
.nav-links a.active { color: var(--green-deep); }

.hero {
  text-align: center;
  padding: 48px 24px 28px;
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.28);
}

.btn-primary:hover { background: var(--green-deep); }

.btn-secondary {
  background: #111827;
  color: #fff;
}

.btn-secondary:hover { background: #000; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.showcase {
  position: relative;
  padding: 24px 24px 48px;
  overflow: hidden;
}

.wave {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 42%;
  height: 180px;
  background: linear-gradient(90deg, #4ade80, #22c55e 40%, #16a34a);
  border-radius: 50% 50% 0 0 / 40px;
  transform: skewY(-2deg);
  z-index: 0;
  opacity: 0.95;
}

.app-frame {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  border: 1px solid #111;
  background: var(--app-bg);
  color: var(--app-text);
}

.app-chrome {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #141517;
  border-bottom: 1px solid #2e2f36;
  font-size: 12px;
  color: var(--app-dim);
}

.dots { display: flex; gap: 5px; }
.dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3a3b42; display: block;
}
.dots i:nth-child(1) { background: #ef4444; }
.dots i:nth-child(2) { background: #f59e0b; }
.dots i:nth-child(3) { background: #22c55e; }

.chrome-title { flex: 1; text-align: center; color: #22c55e; }
.chrome-ver { font-size: 11px; }

.app-body {
  display: grid;
  grid-template-columns: 180px 1fr 190px;
  min-height: 420px;
  font-size: 12px;
}

.pane-label {
  font-size: 11px;
  color: var(--app-dim);
  padding: 8px 10px;
  border-bottom: 1px solid #2e2f36;
  background: var(--app-panel);
}

.pane-nav {
  border-right: 1px solid #2e2f36;
  background: var(--app-panel);
}

.pane-nav ul { list-style: none; padding: 8px 0; }
.pane-nav li {
  padding: 7px 14px;
  color: var(--app-dim);
}
.pane-nav li.on {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-left: 2px solid #22c55e;
}

.pane-main { min-width: 0; display: flex; flex-direction: column; }
.pane-main .block {
  border-bottom: 1px solid #2e2f36;
  padding: 12px 14px;
  color: var(--app-dim);
}
.pane-main .block h4 {
  color: #e8e8ea;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 600;
}
.pane-main .chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  font-size: 11px;
  margin-right: 6px;
  margin-bottom: 6px;
}
.pane-main .row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #27282e;
}
.pane-main .ok { color: #22c55e; }

.pane-side {
  border-left: 1px solid #2e2f36;
  background: var(--app-panel);
  padding-bottom: 10px;
}

.mon-block { padding: 10px 12px 4px; color: var(--app-dim); }
.mon-title {
  color: #6b6d76;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.bar {
  height: 6px;
  background: #2c2d32;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
}
.bar span {
  display: block;
  height: 100%;
  background: #22c55e;
  border-radius: 3px;
}

.feature-tabs {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 22px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  border: none;
  background: #f3f4f6;
  color: #4b5563;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active, .tab:hover {
  background: var(--green);
  color: #fff;
}

.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 24px;
}

.section h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section > .lead {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 640px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p { color: var(--muted); font-size: 14px; }

.card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.dl-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  background: #fff;
}

.dl-card h3 { font-size: 18px; margin-bottom: 4px; }
.dl-card p { color: var(--muted); font-size: 13px; }

.install-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 8px 0 18px;
  background: linear-gradient(180deg, #f8faf9 0%, #fff 48%);
}

.install-box h3 {
  font-size: 18px;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.install-lead {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.git-url {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
}

.git-addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.git-addr .git-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
  flex-shrink: 0;
}

.git-addr code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
}

.install-cmd {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #111827;
  color: #e5e7eb;
  overflow-x: auto;
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid #1f2937;
}

.install-cmd code {
  font-family: inherit;
  white-space: pre;
  color: inherit;
}

.notes {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px;
}

.notes h2 {
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.notes ul {
  padding-left: 18px;
  color: var(--muted);
}

.notes p { color: var(--muted); }
.notes a, footer a { color: var(--green-deep); }

footer {
  max-width: 1120px;
  margin: 20px auto 40px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.page-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 12px;
}

.page-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.page-hero p { color: var(--muted); max-width: 560px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .pane-nav, .pane-side { display: none; }
  .wave { height: 120px; top: 50%; }
  .grid-3 { grid-template-columns: 1fr; }
}
