:root {
  --bg-0: #070b15;
  --bg-1: #0f1830;
  --bg-2: #162044;
  --fg: #e7ecf7;
  --fg-muted: #96a2bd;
  --fg-dim: #6a7796;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --border: rgba(255, 255, 255, 0.08);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--fg);
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      var(--bg-2) 0%,
      var(--bg-1) 40%,
      var(--bg-0) 100%
    );
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

/* Hero */
.hero {
  text-align: center;
  padding-bottom: 2rem;
}

.logo {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow:
    0 24px 48px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 0.5rem;
  background: linear-gradient(180deg, #fff 0%, #b8c4de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.125rem;
  color: var(--fg-muted);
  margin: 0 auto 2rem;
  max-width: 32rem;
}

.cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--accent);
  color: white;
}
.btn.primary:hover {
  background: var(--accent-hover);
  color: white;
}
.btn.secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}
.btn.secondary:hover {
  background: var(--surface-strong);
  color: var(--fg);
}

.version {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--fg-dim);
  font-family: var(--mono);
}

.source-link {
  margin-top: 1.5rem;
  font-size: 0.925rem;
}

/* Screenshot */
.screenshot {
  display: flex;
  justify-content: center;
  margin: 3rem 0 4rem;
}
.screenshot img {
  max-width: 100%;
  width: 420px;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Sections */
section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}

.features {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.feature-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.feature-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.feature-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 0.8em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg);
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Install */
.install {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.install ol {
  padding-left: 1.2rem;
  color: var(--fg-muted);
}

.install ol li {
  margin: 0.75rem 0;
}

.install ol li strong,
.install ol li a {
  color: var(--fg);
}

.install pre {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0.6rem 0 0;
  overflow-x: auto;
}
.install pre code {
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
  color: var(--fg);
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--surface-strong);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--sans);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}
.copy-btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.1);
}
.copy-btn.copied {
  color: #6ee7b7;
}

.note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--fg-dim);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.875rem;
}
footer p {
  margin: 0.35rem 0;
}

/* Responsive */
@media (max-width: 640px) {
  main {
    padding: 2.5rem 1.25rem 2rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .screenshot img {
    width: 100%;
  }
}
