:root {
  --background: #f5f4ef;
  --card: #ffffff;
  --foreground: #232323;
  --muted-foreground: #6b6b6b;
  --border: #e4e2db;
  --secondary: #eceae3;
  --brand: #c99a76;
  --brand-hover: #bb8a64;
  --brand-foreground: #ffffff;
  --radius: 12px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--secondary);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  background: #1c1c1c;
  color: #f2f2f2;
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
}
pre code { background: none; color: inherit; padding: 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 244, 239, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--foreground);
}
.brand-logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--foreground); }

.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
  background: var(--secondary);
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.2;
}
.lang-btn:hover { color: var(--foreground); }
.lang-btn.active { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}
.hero-logo { width: 88px; height: 88px; margin-bottom: 8px; }
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted-foreground);
  font-size: 1.1rem;
}
.hero-cta { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--brand-foreground); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-ghost:hover { background: var(--secondary); }

.hero-shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.25);
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* Features */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}
.features h2, .screenshots h2, .setup h2 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.feature-card p { margin: 0; color: var(--muted-foreground); font-size: 0.96rem; }

/* Screenshots */
.screenshots {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}
.screenshots figure { margin: 0 0 48px; }
.screenshots img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px -20px rgba(0,0,0,0.2);
  display: block;
}
.screenshots figcaption {
  margin-top: 14px;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Setup */
.setup {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-body h3 { margin: 6px 0 12px; font-size: 1.15rem; }
.step-body p { margin: 0 0 12px; }
.step-body ul, .step-body ol { margin: 0 0 12px; padding-left: 22px; }
.step-body li { margin-bottom: 4px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.88rem;
}
.footer-copyright { margin-top: 6px; opacity: 0.75; }
.footer-copyright a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer p:last-child { margin-top: 12px; margin-bottom: 0; }
.donate-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .hero h1 { font-size: 3.2rem; }
}
