: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;
}

.nav-links a:hover { 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;
}

.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-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

footer a { color: var(--green-deep); }
.notes a { 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: 160px 1fr 170px;
  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-tree {
  border-right: 1px solid #2e2f36;
  background: var(--app-panel);
}

.pane-tree ul { list-style: none; padding: 6px 0; }
.pane-tree li { padding: 4px 12px; color: var(--app-dim); }
.pane-tree .dir { color: #e2b340; }
.pane-tree .dir.open::before { content: "▾ "; color: #6b6d76; }
.pane-tree .file::before { content: "📄 "; font-size: 10px; }
.pane-tree .indent { padding-left: 24px; }

.pane-center {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  min-width: 0;
}

.pane-files, .pane-editor, .pane-term {
  border-bottom: 1px solid #2e2f36;
  overflow: hidden;
}

.pane-files table {
  width: 100%;
  border-collapse: collapse;
  color: var(--app-dim);
}

.pane-files th, .pane-files td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid #27282e;
  white-space: nowrap;
}

.pane-files th { color: #6b6d76; font-weight: 500; }

.pane-editor pre, .pane-term pre {
  padding: 10px 12px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.pane-editor .c { color: #6b6d76; }
.pane-editor .k { color: #22c55e; }
.pane-editor .s { color: #fbbf24; }
.pane-editor .v { color: #93c5fd; }

.pane-term .term { color: #a7f3d0; background: #0d0e10; min-height: 100%; }

.pane-mon {
  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;
}

.donut {
  width: 64px;
  height: 64px;
  margin: 6px auto;
  border-radius: 50%;
  background: conic-gradient(#22c55e 0 35%, #3b82f6 35% 70%, #374151 70% 100%);
  mask: radial-gradient(circle 22px, transparent 98%, #000 100%);
  -webkit-mask: radial-gradient(circle 22px, transparent 98%, #000 100%);
}

.legend { text-align: center; font-size: 11px; }

.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;
}

.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); }

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;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .pane-tree, .pane-mon { display: none; }
  .wave { height: 120px; top: 50%; }
}
