/* JCH Soft — game-engine themed, dark, lightweight */
:root {
  --bg: #0b0e14;
  --surface: #12161f;
  --surface-2: #171c28;
  --border: #232a3a;
  --text: #e8ebf2;
  --muted: #8b94a7;
  --accent: #3d9bff;
  --accent-2: #6fe3a1;
  --mono: "SF Mono", "Fira Code", Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* = HEADER = */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,14,20,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav { display: flex; align-items: center; gap: 32px; height: 62px; }
.logo { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--text); letter-spacing: .05em; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo-ver { font-family: var(--mono); font-size: .65rem; font-style: normal; color: var(--muted); margin-left: 8px; vertical-align: super; }
nav ul { list-style: none; display: flex; gap: 26px; margin-left: auto; }
nav ul a { color: var(--muted); text-decoration: none; font-size: .92rem; }
nav ul a:hover, nav ul a.active { color: var(--text); }
.nav-cta { margin-left: 6px; }

/* = HERO = */
.hero { position: relative; padding: 110px 0 90px; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-scene {
  position: absolute; inset: 0;
  background: var(--bg) url("../images/hero-scene.jpg") center 30% / cover no-repeat;
}
.hero-scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,20,.55) 0%, rgba(11,14,20,.35) 40%, rgba(11,14,20,.92) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,14,20,.82) 0%, rgba(11,14,20,.25) 55%, rgba(11,14,20,.45) 100%);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(61,155,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,155,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 280px at 18% 10%, rgba(61,155,255,.14), transparent),
    radial-gradient(560px 280px at 85% 90%, rgba(111,227,161,.09), transparent);
}
.hero .container { position: relative; z-index: 2; }
.kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.08; max-width: 700px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 580px; margin: 20px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 44px; margin-top: 56px; flex-wrap: wrap;
}
.hero-stats strong { display: block; font-size: 1.7rem; font-family: var(--mono); color: var(--accent-2); }
.hero-stats span { color: var(--muted); font-size: .85rem; }

/* = BUTTONS = */
.btn {
  display: inline-block; background: var(--accent); color: #071120;
  font-weight: 700; text-decoration: none;
  padding: 13px 28px; border-radius: 6px;
  transition: filter .15s ease, transform .1s ease;
}
.btn:hover { filter: brightness(1.18); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.ghost:hover { background: rgba(61,155,255,.1); }
.btn.small { padding: 9px 20px; font-size: .88rem; }

/* = SECTIONS = */
.section { padding: 84px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section .kicker { margin-bottom: 8px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 40px; line-height: 1.2; }
.lead { color: var(--muted); max-width: 620px; margin-bottom: 24px; font-size: 1.05rem; }

/* = FEATURES = */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: rgba(61,155,255,.55); transform: translateY(-3px); }
.feature .icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .93rem; }

/* = STEPS = */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px; position: relative; overflow: hidden;
}
.step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--accent), transparent);
}
.step-num { font-family: var(--mono); color: var(--accent); font-size: .72rem; letter-spacing: .1em; }
.step h4 { margin: 8px 0 6px; font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* = CARDS = */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px; position: relative;
}
.card.featured { border-color: rgba(61,155,255,.5); }
.card-tag {
  position: absolute; top: -11px; left: 20px;
  background: var(--accent); color: #071120;
  font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  padding: 3px 11px; border-radius: 4px;
}
.card-tag.tag-dim { background: var(--border); color: var(--muted); }
.card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.card p { color: var(--muted); margin-bottom: 16px; font-size: .95rem; }
.features { list-style: none; margin-bottom: 20px; }
.features li { color: var(--muted); padding-left: 22px; position: relative; font-size: .9rem; margin-bottom: 7px; }
.features li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent-2); }

/* = MATERIAL SHOWCASE = */
.material-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 32px; align-items: start; }
.render-main {
  margin: 0; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.render-main img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.render-main figcaption { padding: 12px 16px; font-size: .85rem; color: var(--muted); }
.render-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--accent-2); display: inline-block; margin-right: 10px; }
.map-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.map-tile {
  margin: 0; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; text-align: center;
}
.map-tile img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #fff; }
.map-tile figcaption { padding: 7px 4px; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted); }
.map-note { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; margin: 4px 0 0; }
.recipe-note { margin-top: 26px; color: var(--muted); font-size: .85rem; }
.recipe-note code { font-family: var(--mono); color: var(--accent-2); font-size: .85rem; }
@media (max-width: 800px) {
  .material-feature { grid-template-columns: 1fr; }
  .map-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Spec row (material metadata) */
.spec-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 28px; }
.spec { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.spec-label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--accent); margin-bottom: 5px; }
.spec-value { color: var(--text); font-size: .88rem; }

/* = CTA = */
.cta { text-align: center; }
.cta .kicker, .cta .lead, .cta .btn { margin-left: auto; margin-right: auto; }
.cta h2 { margin-bottom: 14px; }
.cta .lead { margin-bottom: 28px; }
.email-link {
  font-family: var(--mono); color: var(--accent-2);
  text-decoration: none; font-size: 36px; letter-spacing: .02em;
}
.email-link:hover { text-decoration: underline; }

/* = FOOTER = */
footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: .85rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.mono { font-family: var(--mono); letter-spacing: .08em; font-size: .78rem; }

@media (max-width: 720px) {
  nav { gap: 14px; }
  nav ul { gap: 14px; }
  .nav-cta { display: none; }
  .hero { padding: 72px 0 60px; }
  .hero-stats { gap: 26px; }
}