:root {
  --bg: #160a0c;
  --bg-soft: #1c0e10;
  --panel: #231216;
  --panel-2: #2c161a;
  --line: #3d2126;
  --text: #f6ece8;
  --muted: #c6a3a8;
  --brand: #a01e2a;
  --brand-deep: #8e142c;
  --brand-bright: #d23644;
  --brand-ink: #ffd9dc;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.5);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 70% -10%, rgba(160,30,42,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(160,30,42,.10), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/ 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/ 48px 48px;
  background-color: var(--bg);
  opacity: .55;
  mask-image: radial-gradient(circle at 50% 30%, #000 40%, transparent 90%);
}

/* NAV */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; letter-spacing: .12em; font-size: 19px;
  color: var(--text); text-decoration: none;
}
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(160,30,42,.4);
}
.nav-links { margin-left: auto; display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 11px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s, background .15s, border-color .15s;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff; box-shadow: 0 10px 26px rgba(160,30,42,.4);
}
.btn-primary:hover { background: var(--brand-bright); box-shadow: 0 14px 34px rgba(160,30,42,.55); transform: translateY(-2px); }
.btn-ghost {
  background: var(--panel); color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-hint { font-size: 11px; font-weight: 600; opacity: .8; letter-spacing: .04em; margin-top: 3px; }

/* HERO */
.hero { max-width: var(--maxw); margin: 36px auto 0; padding: 50px 24px 40px; text-align: center; }
.hero-logo {
  width: 120px; height: 120px; border-radius: 26px; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 22px 50px rgba(160,30,42,.45);
  margin-bottom: 26px;
}
.hero-badge {
  display: inline-block; font-size: 13px; color: var(--brand-ink);
  background: rgba(160,30,42,.18); border: 1px solid var(--brand);
  padding: 6px 14px; border-radius: 999px; letter-spacing: .04em; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 8vw, 78px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--brand-bright); }
.hero-sub { max-width: 560px; margin: 22px auto 0; color: var(--muted); font-size: 18px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 44px; display: inline-flex; align-items: center; gap: 22px;
  padding: 16px 26px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); flex-wrap: wrap; justify-content: center;
}
.hero-meta div b { display: block; font-size: 15px; }
.hero-meta div span { font-size: 12px; color: var(--muted); }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* SECTIONS */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.section-title span { color: var(--brand-bright); }
.section-lead { color: var(--muted); margin-top: 10px; max-width: 600px; }

/* STEPS */
.steps { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--brand); transform: translateY(-3px); }
.step-num {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; background: rgba(160,30,42,.18); color: var(--brand-ink);
  border: 1px solid var(--brand); margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* DOWNLOAD */
.download { padding-top: 24px; }
.dl-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 20px; padding: 38px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; box-shadow: var(--shadow);
}
.dl-text h2 { font-size: 28px; }
.dl-text p { color: var(--muted); margin-top: 8px; }
.dl-features { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.dl-features li { font-size: 15px; }
.dl-features li::marker { color: var(--brand-bright); }
.dl-actions { display: flex; flex-direction: column; gap: 12px; }
.dl-actions .btn { width: 100%; }
.dl-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 4px; }

/* WORLDS */
.worlds-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.world-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s;
}
.world-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.world-thumb {
  height: 140px; background: linear-gradient(135deg, #3a151b, #1a0c0e);
  position: relative; display: grid; place-items: center; font-size: 44px;
}
.world-tag {
  position: absolute; top: 10px; left: 10px; font-size: 11px;
  background: rgba(0,0,0,.5); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; color: var(--brand-ink);
}
.world-body { padding: 16px 18px; }
.world-body h3 { font-size: 17px; }
.world-body p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.world-meta { margin-top: 12px; display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.world-meta span { background: var(--panel-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 7px; }
.worlds-empty { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1; }

/* INFO */
.info-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info-item b { color: var(--brand-bright); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.info-item span { display: block; margin-top: 6px; font-size: 16px; }

/* FOOTER */
.footer {
  max-width: var(--maxw); margin: 40px auto 0; padding: 30px 24px 50px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  color: var(--muted); font-size: 14px; flex-wrap: wrap; gap: 8px;
}
.footer-dim { opacity: .6; }

/* WORDMARK (hand-drawn brand) */
.wordmark {
  font-family: "Permanent Marker", "Segoe UI", cursive;
  font-size: 25px; letter-spacing: .03em; color: var(--brand-bright);
  display: inline-block; transform: rotate(-2deg);
}
.hero-wordmark {
  font-family: "Permanent Marker", "Segoe UI", cursive;
  font-size: clamp(54px, 12vw, 116px); line-height: .95; color: var(--brand-bright);
  transform: rotate(-2deg); margin-bottom: 18px;
  text-shadow: 4px 4px 0 rgba(0,0,0,.28);
}

/* SPONSORS */
.sponsors { text-align: center; }
.sponsors-row { margin-top: 26px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.sponsor {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 30px; transition: border-color .2s, transform .2s;
}
.sponsor:hover { border-color: var(--brand); transform: translateY(-3px); }
.sponsor img { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.sponsor span { font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .steps, .worlds-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .dl-card { grid-template-columns: 1fr; padding: 26px; }
}
