/* ============================================================
   Loregend — Genre landing pages (shared styles)
   Used by: visual-novel-maker.html, hidden-object-game-maker.html,
   point-and-click-adventure-maker.html, choose-your-own-adventure-maker.html,
   puzzle-game-maker.html, quiz-game-maker.html
   Palette matches the main marketing site (index.html).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #d0d0e0;
    background: #0f0f1a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: #4a8ec5; text-decoration: none; }
a:hover { color: #6ab0e8; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Site nav (shared marketing chrome) ── */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15,15,26,0.85);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #1a1a2e;
}
.site-nav-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; gap: 24px;
}
.site-nav-brand { font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -0.5px; text-decoration: none; flex-shrink: 0; }
.site-nav-brand .dot { color: #e5a53a; }
.site-nav-brand:hover { color: #fff; text-decoration: none; }
.site-nav-links { display: flex; gap: 26px; margin-left: 12px; }
.site-nav-links a {
    font-size: 14px; font-weight: 600; color: #8888bb; text-decoration: none;
    transition: color 0.15s; padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav-links a:hover { color: #fff; }
.site-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-nav-signin {
    font-size: 14px; font-weight: 700; color: #b0b0d0; text-decoration: none;
    padding: 8px 14px; border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.site-nav-signin:hover { color: #fff; background: rgba(255,255,255,0.05); text-decoration: none; }
.site-nav-cta {
    background: linear-gradient(135deg, #e5a53a, #f0c060); color: #0f0f1a;
    font-size: 14px; font-weight: 800; padding: 9px 18px; border-radius: 8px; text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 2px 12px rgba(229,165,58,0.20); white-space: nowrap;
}
.site-nav-cta:hover { color: #0f0f1a; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(229,165,58,0.35); text-decoration: none; }
@media (max-width: 860px) {
    .site-nav-links { display: none; }
    .site-nav-inner { gap: 12px; padding: 0 16px; }
    .site-nav-signin { padding: 6px 10px; }
    .site-nav-cta { padding: 8px 14px; font-size: 13px; }
}

/* ── Hero ── */
.gm-hero { position: relative; padding: 64px 0 48px; text-align: center; overflow: hidden; }
.gm-hero::before {
    content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(58,110,165,0.15) 0%, rgba(229,165,58,0.05) 40%, transparent 70%);
    pointer-events: none; z-index: 0;
}
.gm-hero .container { position: relative; z-index: 1; }
.gm-badge {
    display: inline-block; background: rgba(229,165,58,0.12); color: #e5a53a;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(229,165,58,0.2); margin-bottom: 22px;
}
.gm-h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1.08; margin-bottom: 16px; }
.gm-h1 em { font-style: normal; background: linear-gradient(135deg, #3a6ea5, #4a8ec5, #e5a53a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gm-lede { font-size: 19px; color: #9aa0bb; max-width: 620px; margin: 0 auto 14px; line-height: 1.6; }
.gm-flex { font-size: 14.5px; color: #8a8aa8; max-width: 560px; margin: 0 auto 28px; line-height: 1.6; }
.gm-flex strong { color: #cdd6e4; }
.gm-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-bottom: 14px; }
.gm-cta {
    display: inline-block; background: linear-gradient(135deg, #3a6ea5, #4a8ec5); color: #fff;
    font-size: 16px; font-weight: 700; padding: 14px 32px; border-radius: 8px; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 20px rgba(58,110,165,0.3); border: none; cursor: pointer; font-family: inherit;
}
.gm-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(58,110,165,0.4); color: #fff; }
.gm-btn {
    display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #cdd6e4;
    background: rgba(255,255,255,0.05); border: 1px solid #2a3a4e; padding: 12px 22px; border-radius: 8px; text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.gm-btn:hover { background: rgba(255,255,255,0.09); border-color: #3a5a7e; color: #fff; text-decoration: none; }
.gm-note { display: block; font-size: 13px; color: #6b7a8d; margin-top: 8px; }
.gm-credit { font-size: 13px; color: #6b7a8d; max-width: 540px; margin: 20px auto 0; line-height: 1.5; }
.gm-credit strong { color: #9fb0c2; }

/* Inline waitlist form */
.gm-form { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: stretch; justify-content: center; max-width: 480px; width: 100%; }
.gm-form input[type="email"] {
    flex: 1 1 220px; min-width: 0; padding: 14px 18px; background: #0f0f1a; border: 1px solid #2a2a44;
    border-radius: 8px; color: #e0e0f0; font-size: 15px; font-family: inherit;
}
.gm-form input:focus { outline: none; border-color: #4a8ec5; box-shadow: 0 0 0 3px rgba(74,142,197,0.15); }
.gm-msg { min-height: 22px; margin: 8px 0 0; font-size: 14px; text-align: center; }
.gm-msg.success { color: #44cc66; }
.gm-msg.error { color: #ff7766; }

/* ── Sections ── */
.gm-section { padding: 56px 0; }
.gm-section.alt { background: linear-gradient(180deg, transparent, rgba(58,110,165,0.03)); border-top: 1px solid #14141f; border-bottom: 1px solid #14141f; }
.gm-center { text-align: center; }
.gm-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #e5a53a; margin-bottom: 12px; }
.gm-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.gm-sub { font-size: 18px; color: #8888aa; max-width: 680px; line-height: 1.6; }
.gm-center .gm-sub { margin: 0 auto; }

/* Feature-map rows (genre need ↔ EM feature) */
.gm-map { display: grid; gap: 18px; max-width: 920px; margin: 40px auto 0; text-align: left; }
.gm-map-row {
    display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 22px 24px; transition: border-color 0.2s;
}
.gm-map-row:hover { border-color: rgba(58,110,165,0.4); }
.gm-map-icon { font-size: 28px; line-height: 1.2; }
.gm-map-row h3 { font-size: 17px; font-weight: 700; color: #e8edf3; margin: 0 0 5px; }
.gm-map-row p { font-size: 14.5px; color: #9fb0c2; line-height: 1.6; margin: 0; }
.gm-map-row p code, .gm-feat-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
    color: #cdd6e4; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px; padding: 1px 6px;
}

/* Card grid */
.gm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 980px; margin: 40px auto 0; text-align: left; }
.gm-card { background: #12122a; border: 1px solid #1a1a2e; border-radius: 12px; padding: 26px 24px; transition: border-color 0.3s, transform 0.2s; }
.gm-card:hover { border-color: #3a6ea5; transform: translateY(-2px); }
.gm-card-icon { font-size: 26px; line-height: 1; margin-bottom: 12px; }
.gm-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 7px; }
.gm-card p { font-size: 14px; color: #8888aa; line-height: 1.6; }

/* "What you can build" example list */
.gm-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 920px; margin: 40px auto 0; text-align: left; }
.gm-example { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 16px 18px; color: #c9d2de; font-size: 14.5px; line-height: 1.5; }
.gm-example strong { color: #fff; }

/* Feature chips ("built from") */
.gm-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 820px; margin: 32px auto 0; }
.gm-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); color: #c9d4e0; font-size: 13.5px; font-weight: 600; padding: 8px 15px; border-radius: 999px; }

/* Closing line under a section */
.gm-kicker { margin: 30px auto 0; max-width: 640px; color: #cdd6e4; font-size: 16px; font-weight: 600; }

/* FAQ */
.gm-faq { max-width: 760px; margin: 36px auto 0; text-align: left; }
.gm-faq details { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; background: rgba(255,255,255,0.02); }
.gm-faq summary { cursor: pointer; color: #e8edf3; font-weight: 600; font-size: 16px; list-style: none; }
.gm-faq summary::-webkit-details-marker { display: none; }
.gm-faq p { margin: 12px 0 0; color: #9fb0c2; font-size: 15px; line-height: 1.6; }

/* Cross-links to sibling genre pages */
.gm-siblings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 980px; margin: 36px auto 0; }
.gm-sibling { display: block; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 16px 18px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.gm-sibling:hover { border-color: rgba(229,165,58,0.35); background: rgba(229,165,58,0.05); text-decoration: none; }
.gm-sibling span { display: block; }
.gm-sibling .gm-sibling-name { color: #e8edf3; font-weight: 700; font-size: 15px; }
.gm-sibling .gm-sibling-desc { color: #8a92a8; font-size: 13px; margin-top: 3px; }

/* ── CTA banner ── */
.gm-ctaband { position: relative; padding: 80px 0; text-align: center; overflow: hidden; }
.gm-ctaband::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(58,110,165,0.1) 0%, transparent 60%); pointer-events: none; }
.gm-ctaband h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: #fff; margin-bottom: 12px; position: relative; z-index: 1; }
.gm-ctaband p { font-size: 17px; color: #6a6a8e; margin-bottom: 28px; position: relative; z-index: 1; }
.gm-ctaband .gm-form, .gm-ctaband .gm-cta-row { position: relative; z-index: 1; justify-content: center; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
.gm-footer { padding: 48px 0 36px; border-top: 1px solid #1a1a2e; }
.gm-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.gm-footer-brand { font-size: 19px; font-weight: 800; color: #fff; }
.gm-footer-brand .dot { color: #e5a53a; }
.gm-footer-tag { font-size: 13px; color: #555577; margin: 4px 0 10px; }
.gm-footer-copy { font-size: 12px; color: #333350; }
.gm-footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.gm-footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #6666aa; margin-bottom: 12px; }
.gm-footer-col a { display: block; font-size: 13px; color: #8888aa; padding: 3px 0; transition: color 0.15s; }
.gm-footer-col a:hover { color: #d0d0e0; text-decoration: none; }
@media (max-width: 768px) {
    .gm-footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .gm-footer-links { justify-content: center; }
    .gm-map-row { grid-template-columns: 1fr; }
    .gm-map-icon { margin-bottom: -6px; }
}
