:root {
  --bg: #f7faf7;
  --ink: #111827;
  --muted: #4b5563;
  --soft: #6b7280;
  --border: #dbe7de;
  --dark: #07130d;
  --dark-2: #0b1711;
  --deep: #166534;
  --green: #22c55e;
  --green-2: #16a34a;
  --green-soft: #f0fdf4;
  --green-border: #bbf7d0;
  --gold: #facc15;
  --gold-soft: #fef3c7;
  --gold-text: #92400e;
  --sky-soft: #eff6ff;
  --sky-border: #bfdbfe;
  --soil: #7c4a21;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--deep);
  text-decoration: none;
}

a:hover {
  color: var(--green-2);
}

img,
svg {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.45);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 19, 13, 0.96);
  color: var(--white);
  border-bottom: 1px solid rgba(187, 247, 208, 0.14);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 6px solid var(--green);
  box-shadow: inset 0 0 0 4px rgba(250, 204, 21, 0.45);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 18px;
  right: -2px;
  top: -8px;
  border-radius: 12px 12px 2px 12px;
  background: #a3e635;
  transform: rotate(28deg);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(34, 197, 94, 0.18);
}

.nav-links .roblox-link {
  background: var(--green);
  color: var(--dark);
}

.nav-links .roblox-link:hover {
  background: #86efac;
  color: var(--dark);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 19, 13, 0.96) 0%, rgba(7, 19, 13, 0.88) 34%, rgba(7, 19, 13, 0.54) 62%, rgba(7, 19, 13, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 19, 13, 0.18), rgba(7, 19, 13, 0.52)),
    image-set(
      url("/assets/hero-farm-ring-bg.webp") type("image/webp"),
      url("/assets/hero-farm-ring-bg.png") type("image/png")
    );
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.hero-inner,
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 34px;
  align-items: center;
  min-height: 430px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(187, 247, 208, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #dcfce7;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 68px);
  margin-top: 18px;
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 14px;
}

.hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: var(--green);
  color: var(--dark);
}

.btn-primary:hover {
  background: #86efac;
  color: var(--dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--deep);
}

.btn-outline {
  background: var(--white);
  border-color: var(--border);
  color: var(--deep);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hero-art {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-image-card {
  padding: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(134, 239, 172, 0.34), rgba(255, 255, 255, 0.08) 58%),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26), 0 0 44px rgba(34, 197, 94, 0.22);
}

.hero-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.hero-farm-scene {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1.05;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(239, 246, 255, 0.2), rgba(240, 253, 244, 0.08)),
    linear-gradient(180deg, rgba(34, 197, 94, 0.14), rgba(124, 74, 33, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 28px;
}

.farm-grid-art {
  position: absolute;
  inset: 62px 44px 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  transform: perspective(700px) rotateX(54deg) rotateZ(-8deg);
  transform-origin: center;
}

.farm-grid-art span {
  border-radius: 12px;
  background:
    radial-gradient(circle at 48% 34%, #86efac 0 12%, transparent 13%),
    linear-gradient(145deg, #7c4a21, #9a642d);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 8px solid rgba(250, 204, 21, 0.82);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.42), inset 0 0 24px rgba(34, 197, 94, 0.25);
}

.ring-one {
  width: 172px;
  height: 172px;
  left: 78px;
  top: 118px;
  transform: rotateX(62deg) rotateZ(-9deg);
}

.ring-two {
  width: 116px;
  height: 116px;
  right: 72px;
  bottom: 74px;
  border-color: rgba(134, 239, 172, 0.76);
  transform: rotateX(62deg) rotateZ(-9deg);
}

.guide-overlay {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 122px;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.guide-overlay strong {
  color: var(--deep);
}

.guide-overlay small {
  color: var(--muted);
  font-weight: 800;
}

.code-overlay {
  left: 26px;
  top: 28px;
}

.calc-overlay {
  right: 28px;
  bottom: 28px;
}

.farm-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.plot {
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, #7c4a21, #9a642d);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.plot::after {
  content: "";
  position: absolute;
  width: 34%;
  height: 44%;
  left: 33%;
  top: 24%;
  border-radius: 30px 30px 5px 30px;
  background: #86efac;
  transform: rotate(35deg);
}

.ring-preview {
  border: 6px solid rgba(250, 204, 21, 0.78);
  border-radius: 50%;
  padding: 18px;
  display: grid;
  place-items: center;
  min-height: 128px;
}

.ring-preview span {
  display: block;
  text-align: center;
  color: #fefce8;
  font-weight: 900;
}

.section {
  padding: 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.link-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-border);
}

.card-kicker {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--deep);
  font-weight: 950;
  margin-bottom: 14px;
}

.mini-link {
  margin-top: 8px;
  font-weight: 850;
}

.code-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.code-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.code-badge strong,
.code-badge span {
  display: block;
}

.code-badge strong {
  color: var(--deep);
  font-size: 18px;
}

.code-badge span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  margin-top: 4px;
}

.compact-actions {
  margin-top: 20px;
}

.mini-guide,
.layout-card,
.stat-card {
  box-shadow: none;
}

.stat-card {
  background: linear-gradient(180deg, var(--white), var(--green-soft));
}

.calculator-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
}

.calculator-preview .eyebrow {
  background: var(--green-soft);
  color: var(--deep);
  border-color: var(--green-border);
}

.calc-mini {
  background:
    linear-gradient(145deg, #f0fdf4, #eff6ff);
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.calc-mini span {
  color: var(--muted);
  font-weight: 850;
}

.calc-mini strong {
  color: var(--deep);
  font-size: 54px;
  line-height: 1;
}

.calc-mini small {
  color: var(--muted);
  font-weight: 750;
}

.compact-head {
  margin-bottom: 20px;
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.step-strip a {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--deep);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.roadmap {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.roadmap-item::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  font-weight: 950;
}

.notice {
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  color: var(--gold-text);
  font-weight: 650;
}

.notice h2 {
  color: inherit;
  font-size: 20px;
  margin-bottom: 10px;
}

.notice ul {
  margin: 0;
  padding-left: 20px;
}

.info {
  border-color: var(--sky-border);
  background: var(--sky-soft);
  color: #1e3a8a;
}

.page-hero {
  background:
    radial-gradient(circle at 85% 12%, rgba(250, 204, 21, 0.2), transparent 24%),
    linear-gradient(135deg, #07130d, #134e2d);
  color: var(--white);
}

.page-hero .hero-inner {
  padding-top: 52px;
  padding-bottom: 52px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 800px;
  font-size: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.content-grid > *,
.guide-content,
.guide-section,
.calculator-shell > *,
.calculator-preview > * {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 86px;
}

.toc a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 750;
}

.toc a:hover {
  color: var(--deep);
}

.guide-content {
  display: grid;
  gap: 22px;
}

.guide-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.guide-section ul,
.guide-section ol {
  padding-left: 22px;
  margin: 10px 0 0;
}

.guide-section li {
  margin-bottom: 9px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--green-soft);
  color: var(--deep);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 850;
}

.status-ok {
  background: var(--green-soft);
  color: var(--deep);
}

.copy-code {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--deep);
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  font-weight: 850;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.calc-form,
.calc-result {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.calc-result {
  background: linear-gradient(145deg, #f0fdf4, #eff6ff);
}

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

.field label {
  display: block;
  font-weight: 850;
  margin-bottom: 7px;
}

.field small {
  display: block;
  color: var(--soft);
  margin-top: 5px;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  background: var(--white);
}

.big-number {
  color: var(--deep);
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1;
  font-weight: 950;
  margin: 12px 0 6px;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(22, 101, 52, 0.16);
  padding-bottom: 9px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.faq-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--deep);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-answer[hidden] {
  display: none;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.related a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--deep);
  font-weight: 800;
}

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 26px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 18px;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  padding: 4px 0;
}

.disclaimer {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--green-border);
  background: var(--deep);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: none;
  font-weight: 950;
}

.back-top.visible {
  display: block;
}

@media (max-width: 980px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(7, 19, 13, 0.96), rgba(7, 19, 13, 0.78)),
      linear-gradient(180deg, rgba(7, 19, 13, 0.34), rgba(7, 19, 13, 0.68)),
      image-set(
        url("/assets/hero-farm-ring-bg.webp") type("image/webp"),
        url("/assets/hero-farm-ring-bg.png") type("image/png")
      );
    background-size: cover;
    background-position: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 64px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--dark-2);
    border: 1px solid rgba(187, 247, 208, 0.16);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
  }

  .hero-grid,
  .content-grid,
  .calculator-shell,
  .calculator-preview,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 360px;
  }

  .toc {
    position: static;
  }

  .code-strip,
  .step-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    padding: 12px 16px;
  }

  .hero-inner,
  .section-inner {
    padding: 42px 16px;
  }

  .hero .hero-inner {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero-grid {
    min-height: 320px;
  }

  .page-hero .hero-inner {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  h1 {
    font-size: 38px;
  }

  .hero .actions {
    gap: 9px;
    margin-top: 20px;
  }

  .hero .btn {
    min-height: 42px;
    padding: 10px 16px;
  }

  .actions,
  .btn {
    width: 100%;
  }

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

  .hero-art {
    min-height: 300px;
  }

  .hero-image-card {
    padding: 8px;
  }

  .hero-image-card img {
    max-height: 280px;
    object-fit: cover;
  }

  .hero-farm-scene {
    width: 100%;
    min-height: 270px;
  }

  .farm-grid-art {
    inset: 68px 28px 56px;
    gap: 8px;
  }

  .ring-one {
    width: 132px;
    height: 132px;
    left: 42px;
    top: 112px;
  }

  .ring-two {
    width: 92px;
    height: 92px;
    right: 42px;
    bottom: 68px;
  }

  .guide-overlay {
    min-width: 112px;
    padding: 10px 12px;
  }

  .code-strip,
  .step-strip,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .calc-mini strong {
    font-size: 42px;
  }

  .card,
  .guide-section,
  .calc-form,
  .calc-result {
    padding: 20px;
  }

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

  .mobile-hide-toc {
    display: none;
  }
}

@media (max-width: 340px) {
  .brand .eyebrow {
    display: none;
  }

  .nav-wrap {
    gap: 10px;
  }
}
