/* Solares Software — static support site
   Single shared stylesheet for all pages. */

:root {
  --bg: #11151f;
  --bg-alt: #171c29;
  --panel: #1b2233;
  --border: #2a3346;
  --text: #e7ebf4;
  --muted: #9aa6bf;
  --accent: #1ec434;
  --accent-2: #5cee6c;
  --link: #74e389;
  --radius: 12px;
  --maxw: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, #1d2740 0%, var(--bg) 60%) no-repeat;
  background-color: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(17, 21, 31, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }

nav.main-nav { margin-left: auto; }
nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
nav.main-nav a.active { color: #11151f; background: var(--accent-2); }

/* ---------- Main ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 20px 64px;
  width: 100%;
  flex: 1;
}

h1 {
  font-size: 2.1rem;
  margin: 0 0 0.6em;
  letter-spacing: 0.5px;
}
h2 { font-size: 1.4rem; margin: 1.8em 0 0.5em; color: var(--accent-2); }
h3 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
p { margin: 0 0 1em; }

.lead { font-size: 1.15rem; color: var(--muted); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
}

/* ---------- Home hero ---------- */
.hero { text-align: center; }
.hero .badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #11151f;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero .capsule {
  display: inline-block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 18px 0 24px;
  max-width: 100%;
}
.hero .capsule img { display: block; width: 460px; max-width: 100%; height: auto; }
.hero .capsule.icon { border-radius: 18px; }
.hero .capsule.icon img { width: 280px; image-rendering: auto; }

/* Brand poster (About page) — light surface for the black wordmark */
.brand-poster {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 24px 0;
}
.brand-poster img { width: 480px; max-width: 100%; height: auto; display: inline-block; }

/* Square Brain title logo on the home hero */
.hero .title-logo {
  display: block;
  width: 580px;
  max-width: 100%;
  height: auto;
  margin: 8px auto 22px;
}

/* Second game feature on the home page */
.home-game {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.home-game-cover {
  display: block;
  width: 480px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 18px auto 20px;
}

/* Square Brain title banner on the games card */
.game-banner {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
}

/* Visually-hidden heading (kept for accessibility/SEO) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #11151f !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.secondary {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.steam-widget {
  width: 100%;
  max-width: 646px;
  height: 190px;
  border: 0;
  margin: 10px auto 0;
  display: block;
}

/* ---------- Cards (support landing) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h2 { margin-top: 0; }

/* ---------- Form ---------- */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
label .req { color: var(--accent); }
input, select, textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-2);
}
textarea { min-height: 130px; resize: vertical; }
.name-row { display: flex; gap: 12px; }
.name-row > div { flex: 1; }
.form-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px 20px;
}
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  h1 { font-size: 1.7rem; }
  main { padding: 32px 16px 48px; }
  .name-row { flex-direction: column; gap: 0; }
  nav.main-nav { margin-left: 0; width: 100%; }
}
