:root {
  --green: #3f5e38;
  --green-dark: #2c4428;
  --green-light: #5a7d52;
  --gold: #c4a35a;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --soft: #f4f4f2;
  --surface: #ffffff;
  --border: #e4e4e4;
  --night: #0e0c0a;
  --shadow: 0 8px 0 #1c1c1c;
  --radius: 1.25rem;
}

html.dark {
  --ink: #f3eee6;
  --muted: #b8b0a4;
  --soft: #1a1714;
  --surface: #1c1916;
  --border: #3a342c;
  --shadow: 0 8px 0 #0a0908;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Nunito, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(63, 94, 56, 0.1), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(28, 28, 28, 0.04), transparent 38%),
    linear-gradient(180deg, #f5f5f3 0%, #ffffff 48%, #f7f7f7 100%);
  background-attachment: fixed;
}

html.dark body {
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 163, 90, 0.1), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(63, 94, 56, 0.1), transparent 38%),
    linear-gradient(180deg, #0e0c0a 0%, #12100e 45%, #16130f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(#d4d4d2 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 0;
}

html.dark body::before {
  opacity: 0.14;
  background-image: radial-gradient(#3a342c 1px, transparent 1px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
}

html.dark a {
  color: var(--gold);
}

.wrap {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-light {
  display: none;
}

html.dark .brand-dark {
  display: none;
}

html.dark .brand-light {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 0 auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--green);
}

.icon-btn,
.menu-btn {
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.lang-select-wrap {
  display: flex;
  align-items: center;
}

.lang-select {
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  min-width: 6.5rem;
}

.lang-select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.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;
}

.menu-btn {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 0 3.5rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

html.dark .kicker {
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.05;
}

.lead {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.65;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}

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

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(380px, 100%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
}

.badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--surface);
}

section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--border) 80%, transparent);
}

.card h3 {
  margin: 0.85rem 0 0.4rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.split img {
  width: min(280px, 100%);
  margin-inline: auto;
}

.install {
  background: color-mix(in srgb, var(--soft) 70%, transparent);
  border-block: 2px solid var(--border);
}

pre {
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 2px solid var(--border);
  background: var(--night);
  color: #f3eee6;
  font-size: 0.88rem;
  line-height: 1.55;
}

.note {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.doc-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.doc-link strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.doc-link span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.community {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.community-intro {
  max-width: 42rem;
  margin-inline: auto;
}

.community-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.legal {
  padding-bottom: 1rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.legal-note {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-note a {
  font-weight: 800;
  text-decoration: none;
}

.footer {
  border-top: 2px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-weight: 700;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links a,
.footer a {
  font-weight: 800;
  text-decoration: none;
}

.footer-legal {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.footer-legal-muted {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
}

.terms-page {
  padding: 2rem 0 3rem;
  max-width: 42rem;
}

.terms-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.terms-body h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.terms-body p,
.terms-body li {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.terms-body ul {
  margin: 0.25rem 0 0.75rem 1.25rem;
  padding: 0;
}

.terms-body a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero,
  .features,
  .split,
  .docs,
  .community,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 4.2rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links .icon-btn,
  .nav-links .lang-select {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
