:root {
  --bg: #0b0d0c;
  --bg-alt: #111513;
  --panel: #161b18;
  --line: #28302b;
  --text: #e7ece9;
  --muted: #9aa6a0;
  --accent: #3f8f4f;
  --accent-2: #57b76a;
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: #0a0f0c; border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 5px; font-size: .9em;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 720px; }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: var(--accent-2); text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--panel); }
.btn-block { display: block; text-align: center; width: 100%; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,13,12,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; font-size: 18px; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn { color: #fff; }
.lang-switch {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-color: var(--panel); color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; line-height: 1.2;
  padding: 6px 28px 6px 10px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239aa6a0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.lang-switch:hover { color: var(--text); border-color: var(--accent); }
.lang-switch option { background: var(--panel); color: var(--text); }
/* keep right-to-left languages readable */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .price-list, html[dir="rtl"] .faq { text-align: right; }

/* hero */
.hero { padding: 70px 0 60px; border-bottom: 1px solid var(--line);
  background: radial-gradient(1000px 500px at 80% -10%, #16241a, transparent); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 12px; font-weight: 700; color: var(--accent-2);
  background: rgba(63,143,79,.12); padding: 5px 12px; border-radius: 100px; margin-bottom: 16px;
}
.hero h1 { font-size: 46px; line-height: 1.08; margin: 0 0 16px; letter-spacing: -1px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-sub { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-shot img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); display: block; aspect-ratio: 16/10; object-fit: cover;
}

/* sections */
.section { padding: 66px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: 32px; margin: 0 0 8px; text-align: center; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 38px; max-width: 620px; }

/* feature grid */
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.feature .fi { font-size: 24px; margin-bottom: 8px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* screenshots */
.screens { grid-template-columns: repeat(3, 1fr); }
.screens figure { margin: 0; }
.screens img {
  width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block;
  aspect-ratio: 16/10; object-fit: cover; background: #0a0f0c;
}
.screens figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; text-align: center; }

/* zoomable images + lightbox */
img.zoomable { cursor: zoom-in; transition: transform .12s ease; }
.screens img.zoomable:hover { transform: scale(1.015); }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.9); align-items: center; justify-content: center; padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 8px 14px; font-size: 14px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* steps */
.steps { grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* pricing */
.price-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px; max-width: 800px; margin: 0 auto; align-items: stretch;
}
.price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px; text-align: center; display: flex; flex-direction: column;
}
.price-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(63,143,79,.12); }
.tier-badge {
  display: inline-block; align-self: center; text-transform: uppercase; letter-spacing: 1.2px;
  font-size: 11px; font-weight: 700; color: var(--accent-2);
  background: rgba(63,143,79,.12); padding: 4px 12px; border-radius: 100px; margin-bottom: 8px;
}
.tier-name { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.price { font-size: 48px; font-weight: 800; }
.price span { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.price-was {
  text-decoration: line-through; color: var(--muted);
  font-size: 26px; font-weight: 600; margin-right: 8px;
}
.sale-badge {
  display: inline-block; align-self: center; text-transform: uppercase; letter-spacing: 1.2px;
  font-size: 11px; font-weight: 700; color: #f2b340;
  background: rgba(242,179,64,.14); border: 1px solid rgba(242,179,64,.35);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 10px;
}
.price-list { list-style: none; padding: 0; margin: 22px 0; text-align: left; flex: 1; }
.price-list li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px dashed var(--line); color: var(--text); }
.price-list li:last-child { border-bottom: none; }
/* CSS-drawn check mark (no emoji) */
.price-list li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 11px; border: solid var(--accent-2); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.price-fine { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.price-trust { text-align: center; color: var(--muted); font-size: 13px; margin: 26px auto 0; max-width: 640px; }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }

/* whole-world overview banner in the "Built for big worlds" section */
.scale-shot { margin: 30px auto 0; max-width: 920px; }
.scale-shot img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.scale-shot figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 10px; }

/* about + contact */
.about-copy { color: var(--text); font-size: 17px; text-align: center; margin: 0; }
.contact-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

/* faq */
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* doc / guide pages (left-aligned long-form content) */
.doc h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -.5px; }
.doc .doc-lede { color: var(--muted); font-size: 17px; margin: 0 0 30px; }
.doc h2 { font-size: 24px; text-align: left; margin: 38px 0 10px; letter-spacing: -.3px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p { color: var(--text); margin: 0 0 14px; }
.doc ul, .doc ol { color: var(--text); margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--muted); }
.doc a { color: var(--accent-2); }
.doc .muted { color: var(--muted); }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }

/* multi-line code blocks */
pre {
  background: #0a0f0c; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; overflow-x: auto; margin: 0 0 16px;
  font-size: 13.5px; line-height: 1.55;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; }
.doc pre + p { margin-top: 0; }

/* callout / note box */
.callout {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 14px 18px; margin: 0 0 18px; color: var(--muted);
}
.callout strong { color: var(--text); }
.callout.warn { border-left-color: var(--accent-2); }

/* license terms list */
.terms { padding-left: 22px; }
.terms li { margin: 9px 0; color: var(--text); }

/* responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .features, .screens, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 540px) {
  .features, .screens, .steps { grid-template-columns: 1fr; }
}
