/* RUMPUS ENGINE — marketing site.
   Palette shared with the field manual so the pages read as part of the product.
   Layout follows the engine-marketing convention: imagery leads, copy is short, rows alternate
   direction rather than repeating one symmetric card grid down the page. */
:root{
  --bg:#080d10; --bg2:#0b1216; --panel:#0e171c; --panel2:#111c22;
  --line:#1e2c33; --line2:#172329;
  --ink:#c8ded6; --dim:#87a79c; --bright:#f2fffa; --accent:#4de3ae; --accent2:#38f5b5;
  --max:1180px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:16px/1.65 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; height:auto; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 24px; }

/* ---------- header ---------- */
header.site{ position:sticky; top:0; z-index:30; background:rgba(8,13,16,0.9);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line2); }
header.site .wrap{ display:flex; align-items:center; gap:20px; height:64px; }
.logo{ display:block; flex:0 0 auto; }
.logo img{ display:block; height:26px; width:auto; }
.logo:hover{ opacity:.85; text-decoration:none; }
header.site nav{ margin-left:auto; display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
header.site nav a{ color:var(--ink); font-size:14.5px; padding:7px 12px; border-radius:6px; white-space:nowrap; }
header.site nav a:hover{ background:var(--panel2); color:var(--bright); text-decoration:none; }
header.site nav a.cta{ background:var(--accent); color:#04211a; font-weight:700; padding:9px 18px; margin-left:8px; }
header.site nav a.cta:hover{ background:var(--accent2); text-decoration:none; }

/* ---------- hero ---------- */
.hero{ position:relative; overflow:hidden; border-bottom:1px solid var(--line2); background:var(--bg2); }
.hero .wrap{ position:relative; z-index:2; padding-top:74px; padding-bottom:74px; }
.hero.compact .wrap{ padding-top:46px; padding-bottom:40px; }
.hero h1{ font-size:clamp(36px,6vw,68px); line-height:1.02; letter-spacing:-1.4px; font-weight:800;
  color:var(--bright); margin:0 0 18px; max-width:15ch; }
.hero h1 em{ font-style:normal; color:var(--accent); }
.hero p.lede{ font-size:clamp(17px,2vw,20px); line-height:1.55; color:var(--dim); max-width:48ch; margin:0 0 28px; }
.hero .btnrow{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.hero .note{ font-size:13.5px; color:var(--dim); margin-top:16px; }

/* full-bleed hero artwork sitting behind the copy */
.hero .bg{ position:absolute; inset:0; z-index:1; }
.hero .bg img{ width:100%; height:100%; object-fit:cover; opacity:.42; }
.hero .bg::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, var(--bg2) 4%, rgba(11,18,22,0.86) 46%, rgba(11,18,22,0.35) 100%); }
@media (max-width:760px){
  .hero .bg::after{ background:linear-gradient(180deg, rgba(11,18,22,0.72), rgba(11,18,22,0.95)); }
}

.btn{ display:inline-block; padding:14px 26px; border-radius:6px; font-weight:700; font-size:16px; letter-spacing:.2px; }
.btn.primary{ background:var(--accent); color:#04211a; }
.btn.primary:hover{ background:var(--accent2); text-decoration:none; }
.btn.ghost{ border:1px solid #2c3f47; color:var(--bright); }
.btn.ghost:hover{ border-color:var(--accent); text-decoration:none; }

/* ---------- sections ---------- */
main{ padding:0; }
section{ padding:74px 0; }
section.alt{ background:var(--bg2); }
section.tight{ padding:52px 0; }
h2{ font-size:clamp(26px,3.6vw,40px); line-height:1.1; letter-spacing:-0.8px; font-weight:800;
  color:var(--bright); margin:0 0 14px; max-width:20ch; }
h3{ font-size:19px; color:var(--bright); margin:0 0 8px; letter-spacing:-0.2px; }
p{ max-width:66ch; margin:0 0 14px; }
.kicker{ font-size:11.5px; letter-spacing:2.6px; text-transform:uppercase; color:var(--accent);
  font-weight:700; margin:0 0 12px; }
.sub{ color:var(--dim); max-width:60ch; }

/* the short, quotable definition answer engines lift. Styled as a lead paragraph, not a boxed card. */
.answer{ font-size:19px; line-height:1.6; color:var(--ink); max-width:64ch; margin:0 0 8px;
  border-left:2px solid var(--accent); padding-left:20px; }
.answer strong{ color:var(--bright); }

/* ---------- editorial rows: image one side, copy the other, alternating ---------- */
.row{ display:grid; grid-template-columns:1.05fr 1fr; gap:52px; align-items:center; }
.row + .row{ margin-top:74px; }
.row.flip .media{ order:2; }
.row .copy p{ color:var(--dim); }
.media{ margin:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#05090b;
  aspect-ratio:16/9; }
.media img{ width:100%; height:100%; object-fit:cover; display:block; }
.media[hidden]{ display:none; }
@media (max-width:860px){
  .row{ grid-template-columns:1fr; gap:26px; }
  .row.flip .media{ order:0; }
}

/* ---------- gallery of product shots ---------- */
/* Two up, not three: four shots in a 3-column grid strand the fourth on a row of its own, and bigger
   screenshots do more work than smaller ones anyway. */
.gallery{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:34px; }
@media (max-width:760px){ .gallery{ grid-template-columns:1fr; } }
.gallery figure{ margin:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#05090b; }
.gallery img{ display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.gallery figcaption{ padding:13px 16px; font-size:14px; color:var(--dim); border-top:1px solid var(--line2); }
.gallery figcaption b{ color:var(--bright); font-weight:600; display:block; margin-bottom:2px; font-size:14.5px; }

/* ---------- video ---------- */
.videos{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:20px; margin-top:34px; }
.vid{ margin:0; }
.vid .frame{ position:relative; display:block; border:1px solid var(--line); border-radius:10px; overflow:hidden;
  background:#05090b; aspect-ratio:16/9; cursor:pointer; }
.vid .frame img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease, opacity .3s; }
.vid .frame:hover img{ transform:scale(1.03); opacity:.8; }
.vid .frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.vid .play{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:66px; height:66px; border-radius:50%; background:rgba(8,13,16,0.78); border:2px solid var(--accent);
  display:flex; align-items:center; justify-content:center; pointer-events:none; transition:background .25s; }
.vid .frame:hover .play{ background:rgba(77,227,174,0.9); }
.vid .play::after{ content:""; border-left:17px solid var(--accent); border-top:11px solid transparent;
  border-bottom:11px solid transparent; margin-left:5px; }
.vid .frame:hover .play::after{ border-left-color:#04211a; }
.vid h3{ margin:14px 0 0; font-size:16px; }
.vid p{ margin:3px 0 0; font-size:13.5px; color:var(--dim); }

/* ---------- card grids (the interior pages) ---------- */
/* Restored after the imagery-led rewrite dropped them: browser-game-engine/ and
   make-a-game-without-coding/ both use .grid/.card and were rendering as bare stacked divs. */
.grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; margin-top:30px; }
/* Six cards in an auto-fit grid land as four-plus-two orphans at desktop width. .g3 forces an even 3x2. */
.grid.g3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .grid.g3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .grid.g3{ grid-template-columns:1fr; } }
.card{ background:var(--panel); border:1px solid var(--line2); border-radius:10px; overflow:hidden;
  display:flex; flex-direction:column; }
.card .pad{ padding:20px 22px; }
.card h3{ margin:0 0 6px; font-size:17px; }
.card p{ margin:0; font-size:14.5px; color:var(--dim); }
.card .k{ font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--accent);
  display:block; margin-bottom:8px; font-weight:700; }
/* A card's image sits flush to its top edge; if the file is missing the figure removes itself and the
   card closes up as if it were never there. */
.card figure{ margin:0; border-bottom:1px solid var(--line2); background:#05090b; }
.card figure img{ display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }

/* ---------- a single screenshot inside a prose section ---------- */
/* Capped: at the full 1132px content width a 16:9 figure is over 600px tall and completely overwhelms the
   paragraph it is illustrating. This keeps it close to the reading column. */
figure.shot{ margin:30px 0 0; border:1px solid var(--line); border-radius:10px; overflow:hidden;
  background:#05090b; max-width:820px; }
figure.shot img{ display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
figure.shot figcaption{ padding:13px 16px; font-size:14px; color:var(--dim); border-top:1px solid var(--line2); }
figure.shot figcaption b{ color:var(--bright); font-weight:600; }
.shots{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:30px; }
.shots figure.shot{ margin:0; max-width:none; }
@media (max-width:760px){ .shots{ grid-template-columns:1fr; } }

/* ---------- lists, tables, faq ---------- */
ul.checks{ list-style:none; padding:0; margin:16px 0 0; }
ul.checks li{ padding:8px 0 8px 22px; position:relative; max-width:66ch; color:var(--dim); }
ul.checks li::before{ content:""; position:absolute; left:0; top:16px; width:9px; height:2px; background:var(--accent); }
ul.checks li strong{ color:var(--bright); font-weight:600; }

.tblwrap{ overflow-x:auto; margin:28px 0 0; border:1px solid var(--line); border-radius:10px; }
table{ border-collapse:collapse; width:100%; min-width:660px; font-size:14.5px; }
th, td{ text-align:left; padding:13px 16px; border-bottom:1px solid var(--line2); vertical-align:top; }
th{ background:var(--panel2); color:var(--bright); font-size:11.5px; letter-spacing:1.4px; text-transform:uppercase; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background:rgba(255,255,255,0.015); }
td.yes{ color:var(--accent); font-weight:600; }
td.no{ color:#6f8791; }

details.faq{ border-bottom:1px solid var(--line2); }
details.faq summary{ cursor:pointer; padding:18px 30px 18px 0; font-weight:600; color:var(--bright);
  font-size:17px; list-style:none; position:relative; }
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary::after{ content:"+"; position:absolute; right:6px; top:16px; color:var(--accent); font-size:20px; font-weight:400; }
details.faq[open] summary::after{ content:"–"; }
details.faq .body{ padding:0 0 20px; color:var(--dim); max-width:70ch; }
details.faq .body p{ margin:0 0 10px; }
details.faq .body p:last-child{ margin-bottom:0; }

/* ---------- closing call to action ---------- */
.cta-band{ padding:76px 0; background:var(--bg2); border-top:1px solid var(--line2); text-align:center; }
.cta-band h2{ margin:0 auto 12px; max-width:22ch; }
.cta-band p{ margin:0 auto 26px; color:var(--dim); max-width:52ch; }

.crumbs{ font-size:13px; color:var(--dim); padding:18px 0 0; }
.crumbs a{ color:var(--dim); }
.crumbs a:hover{ color:var(--accent); }

footer.site{ border-top:1px solid var(--line2); padding:44px 0 56px; color:var(--dim); font-size:14px; background:var(--bg); }
footer.site .cols{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:30px; margin-bottom:30px; }
footer.site .brandcol img{ height:24px; width:auto; margin-bottom:12px; }
footer.site .brandcol p{ font-size:13.5px; max-width:34ch; margin:0; }
footer.site h4{ color:var(--bright); font-size:11.5px; letter-spacing:2px; text-transform:uppercase; margin:0 0 12px; }
footer.site a{ display:block; color:var(--ink); padding:4px 0; font-size:14px; }
footer.site .fine{ border-top:1px solid var(--line2); padding-top:20px; font-size:13px; }
@media (max-width:760px){ footer.site .cols{ grid-template-columns:1fr 1fr; } }

@media (max-width:640px){
  header.site .wrap{ height:auto; padding-top:12px; padding-bottom:12px; flex-wrap:wrap; gap:10px; }
  header.site nav{ width:100%; margin-left:0; }
  header.site nav a{ padding:6px 9px; font-size:14px; }
  .hero .wrap{ padding-top:52px; padding-bottom:52px; }
  section{ padding:52px 0; }
  .cta-band{ padding:56px 0; }
}
