* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-dim: #7d8590;
  --accent: #58a6ff;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --cyan: #39c5cf;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

header {
  text-align: center;
  margin-bottom: 3rem;
}

.logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-dim);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

section {
  margin-bottom: 2.5rem;
}

/* Terminal mockup */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.terminal-header {
  background: var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.terminal pre {
  padding: 1.25rem;
  overflow-x: auto;
}

.terminal code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Terminal colors */
.terminal .green { color: var(--green); }
.terminal .yellow { color: var(--yellow); }
.terminal .red { color: var(--red); }
.terminal .cyan { color: var(--cyan); }
.terminal .dim { opacity: 0.5; }

/* Install section */
.code-block {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.code-block pre {
  flex: 1;
  margin: 0;
  overflow-x: auto;
}

.install code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.9rem;
  color: var(--green);
}

.copy-btn {
  background: var(--border);
  border: none;
  border-radius: 4px;
  color: var(--text-dim);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.copy-btn.copied {
  background: var(--green);
  color: var(--bg);
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
}

.features li,
.requirements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.features li::before,
.requirements li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.requirements-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.dongle-image {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.device-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.device-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: 4rem;
  text-align: center;
}

.github-link {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

.github-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.meta {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 480px) {
  main {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }
}
