/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-code: #1c2128;
  --border: #30363d;
  --text: #f0f6fc;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --green: #3fb950;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Layout ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--border);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

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

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: block;
}

.feature-card h3 {
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Code Blocks ===== */
.code-block {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.code-block pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre;
}

.code-block pre code {
  font-family: inherit;
}

.code-block .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.code-block .copy-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.code-label {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

/* ===== Platform Table ===== */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.platform-table th,
.platform-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.platform-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platform-table tr:last-child td {
  border-bottom: none;
}

.status-full {
  color: var(--green);
}

.status-partial {
  color: var(--text-muted);
}

/* ===== Install Section ===== */
.install-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.install-method h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.install-method p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ===== Support ===== */
.support-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.support-links .btn {
  font-size: 0.9rem;
}

.support-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: italic;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer nav {
  margin-bottom: 0.75rem;
}

footer nav a {
  color: var(--text-muted);
  margin: 0 0.75rem;
}

footer nav a:hover {
  color: var(--accent);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }

  .hero .tagline {
    font-size: 1.35rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  section {
    padding: 5rem 0;
  }
}
