:root {
  --ink: #1a1d21;
  --muted: #6b7076;
  --bg: #fbfaf8;
  --accent: #3c6e5a;
  --accent-hover: #2d5443;
  --border: #e6e3dd;
  --card-bg: #ffffff;
  --radius: 10px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  display: flex;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

nav { display: flex; gap: 24px; margin-left: auto; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
nav a:hover { color: var(--ink); }

.btn-download {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
  margin-left: 24px;
}
.btn-download:hover { background: var(--accent-hover); }

/* Main content */
main { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero > p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  color: var(--accent);
  padding: 12px 20px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

/* Features */
.features { padding: 80px 0; }
.features h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 48px;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.card img { margin-bottom: 16px; }
.card h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Screenshots */
/* updated layout: was single-column, switched to 2-col grid in v2.3 */
.screenshots { padding: 80px 0; border-top: 1px solid var(--border); }
.screenshots h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 48px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.screenshots-grid figure { margin: 0; }
.screenshots-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.screenshots-grid figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* About */
.about { padding: 80px 0; border-top: 1px solid var(--border); }
.about h2 { font-size: 1.8rem; margin-bottom: 20px; }
.about p { color: var(--muted); margin-bottom: 12px; max-width: 600px; }

/* Contact */
.contact { padding: 80px 0; border-top: 1px solid var(--border); }
.contact h2 { font-size: 1.8rem; margin-bottom: 12px; }
.contact > p { color: var(--muted); margin-bottom: 24px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--card-bg);
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button { align-self: flex-start; }

.contact-alt {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}
.contact-alt a { color: var(--accent); text-decoration: none; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--muted); font-size: 0.8rem; }

/* Fade-in animation */
/* Elements start hidden; JS adds .visible on scroll intersection */
.card,
.screenshots-grid figure {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.card.visible,
.screenshots-grid figure.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: if JS is disabled, show everything */
.no-js .card,
.no-js .screenshots-grid figure {
  opacity: 1;
  transform: none;
}

/* Screen-reader only (accessible hidden labels) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--ink);
}

/* Responsive */
@media (max-width: 768px) {
  header { padding: 14px 20px; }
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
  }
  nav.open { display: flex; }
  .btn-download { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
