/* SceneGraft landing page — dark, calm marketing page.
   Brand-adjacent to StoreCraft but quieter (see docs/goals/SCENEGRAFT_HOMEPAGE.md). */

:root {
  --bg:      #0a0d12;
  --bg-alt:  #0e1219;
  --surface: #141a24;
  --border:  #1d2735;
  --text:    #dbe4ee;
  --dim:     #8493a5;
  --accent:  #00c8a0;
  --accent2: #4a90d9;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

.section-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
#sg-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  color: var(--text); font-weight: 700; letter-spacing: 0.12em; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
#sg-nav nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
#sg-nav nav a { color: var(--dim); font-size: 13px; }
#sg-nav nav a:hover { color: var(--text); }
#sg-nav .nav-cta {
  color: var(--accent); border: 1px solid var(--accent);
  padding: 5px 14px; border-radius: 6px;
}
#sg-nav .nav-cta:hover { background: rgba(0, 200, 160, 0.1); }

/* ── Sections ── */
section { padding: 88px 0; border-bottom: 1px solid var(--border); }
section:nth-of-type(even) { background: var(--bg-alt); }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 16px; }
.lede { font-size: 18px; color: var(--dim); max-width: 640px; }

#hero { padding: 130px 0 110px; text-align: center; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 200, 160, 0.08), transparent),
    linear-gradient(rgba(10, 13, 18, 0.55), rgba(10, 13, 18, 0.85)),
    url(hero-bg.png) center/cover no-repeat; }
#hero .lede { margin: 20px auto 36px; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; transition: transform 0.12s, background 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04241c; }
.btn-primary:hover { background: #17dcb4; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--dim); }

#storecraft p { color: var(--dim); max-width: 640px; margin-bottom: 24px; }

/* ── What's New ── */
.whatsnew-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.whatsnew-head h2 { margin-bottom: 0; }
.version-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.whatsnew-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.whatsnew-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  transition: border-color 0.12s;
}
.whatsnew-list li:hover { border-color: var(--accent); }
.whatsnew-date {
  color: var(--dim); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  flex-shrink: 0; min-width: 4.5em;
}

/* ── Featured games ── */
.game-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 28px;
}
.game-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; color: var(--text);
  transition: transform 0.12s, border-color 0.12s;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.game-thumb {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, #16202e, #0d1420);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 13px; letter-spacing: 0.08em;
}
.game-card-body { padding: 16px; }
.game-card-body h3 { font-size: 17px; margin-bottom: 6px; }
.game-card-body p { font-size: 13px; color: var(--dim); }

/* ── Developers ── */
#developers p { color: var(--dim); max-width: 640px; }
.points { list-style: none; margin-top: 20px; }
.points li {
  padding: 8px 0 8px 28px; position: relative; color: var(--text); font-size: 15px;
}
.points li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent); opacity: 0.85;
}

/* ── Community ── */
.link-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.link-row a {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 22px;
  color: var(--text); font-size: 14px;
}
.link-row a:hover { border-color: var(--accent); }
.community-empty { color: var(--dim); font-size: 14px; }

/* ── About / footer ── */
#about p { color: var(--dim); max-width: 640px; }
footer { padding: 28px 0; color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; }
footer .footer-links a { color: var(--dim); }
footer .footer-links a:hover { color: var(--accent); }
footer .footer-sep { margin: 0 8px; opacity: 0.5; }

@media (max-width: 640px) {
  section { padding: 60px 0; }
  #hero { padding: 90px 0 70px; }
  .nav-inner { flex-direction: column; gap: 10px; }
}
