/* deskOTP GitHub Pages — dark theme stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d1117;
  --surface:  #161b22;
  --border:   #30363d;
  --text:     #e6edf3;
  --muted:    #8b949e;
  --accent:   #388bfd;
  --accent2:  #f0a500;
  --radius:   0.5rem;
  --max-w:    960px;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

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

/* ── Layout ── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}

.hero-icon {
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
}

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

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

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

.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Screenshot placeholder ── */

.screenshot-placeholder {
  text-align: center;
  margin: 2rem auto;
  max-width: 720px;
}

/* ── Section wrapper ── */

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* ── How It Works ── */

.steps-list {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.steps-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

/* ── Features Grid ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

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

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

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

/* ── Supported Formats ── */

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

.format-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
}

/* ── Install ── */

.install-section p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.install-section .btn {
  display: block;
  width: fit-content;
  margin: 0 auto 2.5rem;
}

.distro-deps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.distro-block h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.distro-block pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  overflow-x: auto;
}

.distro-block code {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--text);
}

.build-link {
  text-align: center;
  margin-top: 0.5rem;
}

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

.build-link a:hover {
  text-decoration: underline;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--muted);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 3rem 1.5rem 2.5rem;
  }

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

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .format-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .format-grid {
    grid-template-columns: 1fr;
  }
}
