:root {
  --green-dark: #1b5e20;
  --green: #2e7d32;
  --green-light: #66bb6a;
  --gold: #ffd54f;
  --gold-dark: #ffb300;
  --brown: #6d4c41;
  --cream: #fff8e1;
  --text: #1c1b1f;
  --text-muted: #5f6368;
  --surface: #ffffff;
  --border: #e8eaed;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-dark);
  text-decoration: none;
}

.brand:hover { text-decoration: none; color: var(--green); }

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--green-light), var(--green));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

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

.site-nav a:hover { color: var(--green); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.28);
}

.btn-primary:hover { color: #fff; }

.btn-play {
  background: #000;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-play:hover { color: #fff; }

.btn-play svg { width: 22px; height: 22px; flex-shrink: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-bar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.lang-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 12px;
  background: #eef2ee;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.lang-btn {
  width: 50px;
  height: 36px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.lang-btn.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.22);
}

.lang-flag {
  width: 42px;
  height: 28px;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
  max-width: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.btn-telegram {
  background: linear-gradient(145deg, #37aee2, #229ed9);
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.28);
}

.btn-telegram:hover { color: #fff; }

.btn-telegram svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hero */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 213, 79, 0.35), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(102, 187, 106, 0.25), transparent 40%),
    linear-gradient(180deg, #e8f5e9 0%, var(--cream) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: var(--green-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}



.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

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

.hero-note {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pkg {
  font-family: ui-monospace, Consolas, monospace;
  background: #f1f3f4;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* Farm visual */
.farm-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.farm-carousel {
  position: relative;
  aspect-ratio: 512 / 340;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #81d4fa;
}

.farm-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.farm-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.farm-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.farm-slide figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(27, 94, 32, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}

.farm-carousel-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.farm-carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.farm-carousel-dots button.is-active {
  background: var(--gold);
  transform: scale(1.15);
}

.farm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-box {
  background: #f8faf8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.stat-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section-stats {
  padding: 28px 0 36px;
  background: linear-gradient(180deg, #f4faf4 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.community-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(20, 60, 30, 0.06);
}

.community-stat strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.community-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.community-stats-note {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .community-stats {
    gap: 12px;
  }

  .community-stat {
    padding: 16px 12px;
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 36px;
}

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

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--brown);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.feature {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: #f8faf8;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--green-dark);
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.economy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.economy-card {
  text-align: center;
  padding: 22px 14px;
  background: linear-gradient(180deg, #fff, #f1f8e9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.economy-card strong {
  display: block;
  font-size: 1.35rem;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.economy-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cta-band {
  padding: 56px 0;
  text-align: center;
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-band .btn-primary:hover { color: var(--green-dark); }

/* Legal / content pages */
.page-hero {
  padding: 40px 0 24px;
  background: linear-gradient(180deg, #e8f5e9 0%, var(--cream) 100%);
}

.page-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-card h1 {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.page-card h2 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin: 28px 0 10px;
}

.page-card p,
.page-card li {
  color: #444;
  margin-bottom: 12px;
}

.page-card ul,
.page-card ol {
  margin: 0 0 16px 20px;
}

.page-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.page-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.9rem;
}

.page-card th,
.page-card td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.page-card th {
  background: #f0f7f0;
  color: var(--green-dark);
}

.cta-inline {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  margin: 8px 0 16px;
  text-decoration: none;
}

.cta-inline:hover { background: var(--green-dark); color: #fff; text-decoration: none; }

.steps-box {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px 20px 20px 36px;
  margin: 16px 0 24px;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 40px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover { color: var(--gold); text-decoration: underline; }

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Roadmap timeline */
.roadmap-intro {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 12px;
}

.roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.done { background: var(--green); }
.legend-dot.coming { background: var(--gold-dark); }

.tl-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 0 8px;
}

.tl {
  position: relative;
  padding: 12px 0;
  --tl-axis: 50%;
}

/* Center spine */
.tl::before {
  content: "";
  position: absolute;
  left: var(--tl-axis);
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(
    to bottom,
    var(--green) 0%,
    var(--green-light) 38%,
    var(--gold-dark) 62%,
    #ffcc80 100%
  );
  border-radius: 4px;
  z-index: 0;
}

.tl-phase {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 8px 0 28px;
}

.tl-phase span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.tl-phase--done span {
  color: var(--green-dark);
  border-color: #a5d6a7;
}

.tl-phase--future span {
  color: #8d6e00;
  border-color: #ffe082;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  grid-template-rows: auto;
  align-items: center;
  min-height: 120px;
  margin-bottom: 12px;
  z-index: 1;
}

.tl-item--done {
  grid-template-areas: ". axis card";
}

.tl-item--future {
  grid-template-areas: "card axis .";
}

/* Horizontal connector arm */
.tl-item::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.tl-item--done::after {
  left: calc(var(--tl-axis) + 14px);
  width: min(360px, calc(50% - 80px));
  background: linear-gradient(90deg, var(--green-light), #c8e6c9);
}

.tl-item--future::after {
  right: calc(var(--tl-axis) + 14px);
  width: min(360px, calc(50% - 80px));
  background: linear-gradient(270deg, var(--gold-dark), #ffe082);
}

.tl-axis {
  grid-area: axis;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.tl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid var(--cream);
  box-sizing: content-box;
  flex-shrink: 0;
}

.tl-dot--done {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2);
}

.tl-dot--future {
  background: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.22);
}

.tl-card-wrap {
  position: relative;
  z-index: 2;
}

.tl-item--done .tl-card-wrap {
  grid-area: card;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 24px;
}

.tl-item--future .tl-card-wrap {
  grid-area: card;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-right: 24px;
}

.tl-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tl-item--future .tl-date {
  text-align: right;
  width: 100%;
  max-width: 360px;
}

.tl-item--done .tl-date {
  max-width: 360px;
}

.tl-card {
  display: block;
  width: 100%;
  max-width: 360px;
  text-align: left;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  position: relative;
  z-index: 2;
}

.tl-item--done .tl-card {
  border-right: 5px solid var(--green);
}

.tl-item--future .tl-card {
  border-left: 5px solid var(--gold-dark);
}

.tl-card h3 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.tl-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.tl-list {
  margin: 0 0 4px;
  padding-left: 18px;
  list-style: disc;
}

.tl-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.tl-list li:last-child {
  margin-bottom: 0;
}

.tl-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
}

.tl-tag--done { background: #e8f5e9; color: var(--green-dark); }
.tl-tag--progress { background: #fff8e1; color: #8d6e00; }
.tl-tag--planned { background: #f1f3f4; color: var(--text-muted); }

.tl-now {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 36px 0 40px;
  height: 56px;
}

.tl-now::before {
  content: "";
  position: absolute;
  left: var(--tl-axis);
  top: 50%;
  width: min(420px, 80%);
  height: 2px;
  background: var(--border);
  transform: translate(-50%, -50%);
  z-index: 0;
}

@media (min-width: 901px) {
  .tl-item--done .tl-card-wrap {
    padding-left: 28px;
  }

  .tl-item--future .tl-card-wrap {
    padding-right: 28px;
  }

  .tl-phase {
    margin: 12px 0 32px;
  }
}

.tl-now-pill {
  position: relative;
  z-index: 1;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(27, 94, 32, 0.35);
  border: 4px solid var(--cream);
}

.roadmap-note {
  background: linear-gradient(145deg, #e8f5e9, #f1f8e9);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.92rem;
  color: #33691e;
  max-width: 920px;
  margin: 24px auto 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .steps,
  .features,
  .economy-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 32px; }
  .site-nav { display: none; }
  .header-actions { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .header-actions .btn { padding: 10px 14px; font-size: 0.85rem; }
  .lang-bar-inner { padding: 6px 0; }
  .lang-btn { width: 46px; height: 32px; }
  .lang-flag { width: 38px; height: 25px; }
  .farm-card { max-width: 400px; margin: 0 auto; }

  .tl { --tl-axis: 28px; }

  .tl-item,
  .tl-item--done,
  .tl-item--future {
    grid-template-columns: 56px 1fr;
    grid-template-areas: "axis card";
    min-height: auto;
    margin-bottom: 24px;
  }

  .tl-item::after {
    display: none;
  }

  .tl-axis {
    grid-area: axis;
    align-self: start;
    padding-top: 28px;
  }

  .tl-card-wrap {
    grid-area: card !important;
    padding: 0 !important;
    align-items: flex-start !important;
  }

  .tl-item--future .tl-date {
    text-align: left !important;
    max-width: none;
  }

  .tl-item--done .tl-date {
    max-width: none;
  }

  .tl-item--future .tl-card,
  .tl-item--done .tl-card {
    border-left-width: 5px;
    border-right: none;
    max-width: none;
  }

  .tl-item--done .tl-card {
    border-left-color: var(--green);
  }

  .tl-item--future .tl-card {
    border-left-color: var(--gold-dark);
  }

  .tl-now::before { width: 120px; }
}