/* The landing page. */
.center { text-align: center; }
.section-head.center { margin-inline: auto; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.split > div { max-width: 640px; }
h1 em, h2 em { font-style: normal; color: var(--green); }

/* --- Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 78% 30%, rgba(98, 225, 111, 0.16), transparent 60%),
  radial-gradient(700px 500px at 10% 0%, rgba(90, 168, 255, 0.12), transparent 60%),
  linear-gradient(180deg, rgba(12, 15, 21, 0.55), var(--bg)),
  url(/assets/vanilla/textures/blocks/stone.png) 0 0 / 64px 64px;
  image-rendering: pixelated; opacity: 0.95; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(12, 15, 21, 0.86) 45%, rgba(12, 15, 21, 0.55) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero-lead { font-size: 1.18rem; color: var(--text-2); max-width: 560px; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-actions.center { justify-content: center; }
.hero-proof { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
.hero-proof li { display: grid; }
.hero-proof b { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.hero-proof span { color: var(--muted); font-size: 0.9rem; }

.hero-screen { display: grid; justify-items: center; gap: 10px; }
.screen-stage { position: relative; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55)); }
.screen-scale { position: relative; }
.screen-caption { color: var(--muted); font-size: 0.85rem; margin: 0; }
.screen-toast { --toast-scale: 1; position: absolute; right: calc(-18px * var(--toast-scale)); top: calc(-22px * var(--toast-scale)); z-index: 80; transform-origin: top right; display: flex; align-items: center; gap: 10px; width: 320px; padding: 10px 14px 10px 12px; background: #212121; border: 2px solid #000; box-shadow: inset 0 0 0 2px #555; border-radius: 3px; transform: translateY(-14px) scale(var(--toast-scale)); opacity: 0; transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.2), opacity 0.25s; pointer-events: none; }
.screen-toast.show { transform: scale(var(--toast-scale)); opacity: 1; }
.screen-toast .toast-icon { width: 40px; height: 40px; margin: 0 4px; image-rendering: pixelated; flex: none; }
.screen-toast b { display: block; font-family: var(--pixel); font-weight: 400; color: #ffff55; font-size: 0.9rem; }
.screen-toast b.challenge { color: #ff55ff; }
.screen-toast .toast-title { font-family: var(--pixel); color: #fff; font-size: 0.9rem; }
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-screen { overflow-x: auto; max-width: 100%; justify-items: start; }
}

/* --- Trailer -------------------------------------------------------------------- */
.trailer { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.trailer video { display: block; width: 100%; height: 100%; object-fit: cover; }
.trailer-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55)); border: 0; color: #fff; cursor: pointer; font: inherit; }
.trailer-play i { width: 84px; height: 84px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(98, 225, 111, 0.22); transition: transform 0.2s; }
.trailer-play i::after { content: ""; border-left: 26px solid var(--green-ink); border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.trailer-play:hover i { transform: scale(1.06); }
.trailer-play span { font-weight: 700; font-size: 1.2rem; margin-top: 10px; }
.trailer-play small { color: rgba(255, 255, 255, 0.75); }
.trailer.playing .trailer-play { display: none; }

/* --- Creator ------------------------------------------------------------------------- */
.creator-showcase { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 48px; align-items: center; }
.creator-copy p { color: var(--text-2); font-size: 1.08rem; }
.creator-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.creator-points li { color: var(--text-2); padding-left: 18px; border-left: 2px solid var(--line-2); }
.creator-points b { color: var(--text); }
.creator-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); transition: transform 0.25s; background: var(--panel); }
.creator-shot:hover { transform: translateY(-4px) rotate(-0.3deg); }
.creator-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 960px) { .creator-showcase { grid-template-columns: 1fr; } }

/* --- Community ---------------------------------------------------------------------- */
.community-stats { display: flex; gap: 28px; justify-content: center; margin-top: 28px; color: var(--muted); flex-wrap: wrap; }
.community-stats b { color: var(--text); font-size: 1.2rem; margin-right: 6px; }

/* --- Developers ---------------------------------------------------------------------- */
.dev { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.dev p { color: var(--text-2); font-size: 1.05rem; }
.dev-ways { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; color: var(--text-2); }
.dev-ways b { color: var(--text); }
.code-card { background: #0a0d12; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.code-tabs { display: flex; background: var(--panel); border-bottom: 1px solid var(--line); }
.code-tabs span { padding: 10px 16px; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.code-tabs span.active { color: var(--text); border-bottom: 2px solid var(--green); }
.code-card pre { margin: 0; border: 0; border-radius: 0; font-size: 0.85rem; }
.code-card .k { color: #8cc8ff; }
.code-card .s { color: #a5e98b; }
@media (max-width: 960px) { .dev { grid-template-columns: 1fr; } }

/* --- FAQ and final call -------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto 24px; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin: 0 0 18px; }
.final-cta { text-align: center; background: radial-gradient(600px 300px at 50% 100%, rgba(98, 225, 111, 0.14), transparent 70%); }
.final-inner img { image-rendering: pixelated; margin-bottom: 16px; }
.final-inner p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 26px; }
