:root {
  --bg: #141814;
  --bg-soft: #1b221b;
  --panel: #222b22;
  --line: #354235;
  --text: #eaf3ea;
  --muted: #b2c0b2;
  --accent: #74b94b;
  --accent-2: #e5b84f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Candara", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% -10%, #2d3a2d 0%, transparent 45%),
    linear-gradient(180deg, #121712 0%, #141814 100%);
  color: var(--text);
  line-height: 1.55;
}

.lang-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.lang-wrap {
  width: min(760px, 92%);
}

.lang-card {
  background: rgba(27, 34, 27, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 20, 15, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Rockwell", "Cambria", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 16px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: 56px 0;
}

.eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #202920;
  border-radius: 6px;
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  font-family: "Rockwell", "Cambria", serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 14px 0 10px;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.5rem, 3.3vw, 2.1rem);
}

.hero-text {
  max-width: 62ch;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #89cb62 0%, #66a942 100%);
  color: #102010;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

section {
  padding: 64px 0;
}

.features {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.steps {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.steps li + li {
  margin-top: 8px;
}

.download-box {
  text-align: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 168, 72, 0.15), rgba(229, 184, 79, 0.08)),
    #1b221b;
}

.wiki-box {
  text-align: left;
}

.wiki-box p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.illustration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.illustration-card {
  margin: 0;
  background: #181f18;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.illustration-card a {
  display: block;
}

.illustration-card img {
  display: block;
  width: 100%;
  height: auto;
}

.illustration-card figcaption {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.community code {
  background: #1f281f;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.footer-highlight {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 2.3vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .menu-toggle {
    display: inline-flex;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1e261e;
    color: var(--text);
    font-weight: 700;
  }

  nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 14px 4%;
    background: rgba(16, 22, 16, 0.98);
    border-bottom: 1px solid var(--line);
  }

  nav.is-open {
    display: flex;
  }

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