:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #9da7b3;
  --accent: #4f8cff;
  --accent-hover: #3a78f0;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.brand img { border-radius: 8px; }
.site-header nav a { margin-left: 1.25rem; color: var(--muted); }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

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

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}
.hero-logo { border-radius: 22px; margin-bottom: 1.5rem; }
.hero h1 { font-size: 2.6rem; margin: 0 0 1rem; line-height: 1.2; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }

/* Buttons */
.cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Features */
.features { padding: 3rem 0; }
.features h2, .download h2 { text-align: center; font-size: 1.9rem; margin-bottom: 2rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* Download */
.download { padding: 3rem 0 4rem; text-align: center; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.site-footer nav a { margin: 0 0.6rem; color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }

/* Legal pages (privacy / terms) */
.legal { padding: 3rem 0; max-width: 720px; }
.legal h1 { font-size: 1.9rem; margin-bottom: 0.25rem; }
.legal h2 {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 2rem 0 0.6rem;
}
.legal p { color: var(--text); margin: 0.6rem 0; }
.legal ul { color: var(--text); padding-left: 1.2rem; margin: 0.6rem 0; }
.legal li { margin: 0.4rem 0; color: var(--muted); }
.legal a { word-break: break-word; }
.legal strong { color: var(--text); }

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 0; }
}
