:root {
  --bg: #ffffff;
  --bg2: #f4f6fb;
  --fg: #0f1729;
  --muted: #5b6478;
  --line: #e2e6ef;
  --accent: #2f6bf0;
  --accent2: #ffb020;
  --sel: #d8e6ff;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(15, 23, 41, 0.12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d111a;
    --bg2: #141a26;
    --fg: #e8ecf5;
    --muted: #97a0b5;
    --line: #262e3d;
    --sel: #1d3a66;
    --card: #141a26;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
code,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
code {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100vw - 1080px) / 2));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--fg);
}
.nav nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}
.nav nav a {
  color: var(--muted);
}
.nav nav a.gh {
  color: var(--fg);
  font-weight: 600;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* hero */
.hero {
  text-align: center;
  padding: 64px 0 40px;
}
.hero-icon {
  filter: drop-shadow(0 12px 24px rgba(47, 107, 240, 0.35));
}
h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
h1 span {
  background: linear-gradient(90deg, var(--accent), #7b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 19px;
  color: var(--muted);
}
.cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  font-weight: 600;
}
.btn:hover {
  text-decoration: none;
  border-color: var(--muted);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 107, 240, 0.35);
}
.btn.primary:hover {
  filter: brightness(1.07);
}
.btn small {
  font-weight: 400;
  opacity: 0.85;
  font-size: 13px;
}
.other {
  font-size: 14px;
  color: var(--muted);
  min-height: 22px;
}
.other a {
  margin: 0 6px;
}

/* app mock */
.window {
  max-width: 900px;
  margin: 40px auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
  font-size: 13px;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.titlebar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.titlebar i:nth-child(2) {
  background: #febc2e;
}
.titlebar i:nth-child(3) {
  background: #28c840;
}
.titlebar span {
  margin-left: 8px;
  font-weight: 600;
  color: var(--muted);
}
.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pane {
  position: relative;
  border-right: 1px solid var(--line);
  padding-bottom: 10px;
}
.pane:last-child {
  border-right: none;
}
.pane.drop {
  outline: 2px dashed var(--accent);
  outline-offset: -4px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.pane .bar {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.pane .bar b {
  color: var(--fg);
}
.row {
  display: flex;
  justify-content: space-between;
  padding: 5px 14px;
}
.row em {
  font-style: normal;
  color: var(--muted);
}
.row.sel {
  background: var(--sel);
}
.row.target {
  background: var(--sel);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.ghost {
  position: absolute;
  left: 34%;
  top: 92px;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  animation: float 2.4s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translate(6px, -4px);
  }
}
.jobs {
  display: grid;
  gap: 4px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
}
.jobs small {
  color: var(--muted);
}
.bar2 {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.bar2 i {
  display: block;
  height: 100%;
  width: 64%;
  background: var(--accent);
  animation: grow 3s ease-in-out infinite alternate;
}
@keyframes grow {
  from {
    width: 18%;
  }
  to {
    width: 92%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ghost,
  .bar2 i {
    animation: none;
  }
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  padding: 56px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* setup */
.setup,
.faq {
  padding: 24px 0 48px;
}
h2 {
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.setup ol {
  padding-left: 22px;
  margin: 0 0 28px;
}
.setup li {
  margin-bottom: 8px;
}
.keys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.keys div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.keys span {
  margin-left: auto;
  text-align: right;
  color: var(--muted);
  font-size: 14px;
}
kbd {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  background: var(--bg2);
}

/* faq */
details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--card);
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 8px 0 0;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 32px 16px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.muted {
  color: var(--muted);
}

@media (max-width: 640px) {
  .nav nav a:not(.gh) {
    display: none;
  }
  .panes {
    grid-template-columns: 1fr;
  }
  .pane {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .ghost {
    display: none;
  }
}
