/* Simple Gear Games — site styles */

:root {
  --bg: #1b2246;
  --bg-2: #212a55;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f2f4ff;
  --muted: #aab1d8;
  --blue: #9cc2ff;
  --orange: #ffad1f;
  --green: #84de2e;
  --radius: 18px;
  --max: 1120px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--blue);
  color: #00121f;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 34, 70, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand img { height: 34px; width: auto; }

.nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-strong);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.nav-toggle svg { margin: auto; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 20px 20px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 110px 0 120px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(9, 10, 29, 0.15), var(--bg) 96%),
    url("../img/space-bg.webp") center / cover no-repeat;
  overflow: hidden;
}

.hero-logo {
  width: min(720px, 92%);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 40px rgba(43, 184, 255, 0.25));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.15;
  margin: 0 auto 16px;
  max-width: 760px;
}

.hero p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1a7dff);
  color: #fff;
  box-shadow: 0 8px 28px rgba(43, 140, 255, 0.35);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-strong); }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section + .section { padding-top: 24px; }

.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 8px;
  line-height: 1.2;
}
.section-head p { color: var(--muted); margin: 0; max-width: 640px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

/* ---------- Games ---------- */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.game {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.game:hover { border-color: rgba(43, 184, 255, 0.45); transform: translateY(-3px); }

.game img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.game h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 6px;
}

.game .genre {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 10px;
}

.game p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
  flex: 1;
}

.store-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
}
.store-link:hover { text-decoration: none; background: rgba(255, 255, 255, 0.12); }
.store-link.soon { color: var(--muted); cursor: default; }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.about p { color: var(--muted); margin: 0 0 16px; }

.facts {
  display: grid;
  gap: 12px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.fact strong { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.fact span { font-weight: 600; }

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(43, 184, 255, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 173, 31, 0.14), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 6px;
}
.contact-card p { color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  .contact-card { padding: 28px 22px; }
}

/* ---------- Document pages (company, legal) ---------- */

.page-hero {
  padding: 120px 0 44px;
  background: radial-gradient(ellipse at 85% 0%, rgba(140, 120, 255, 0.25), transparent 60%), var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 4.5vw, 44px);
  margin: 0 0 6px;
  line-height: 1.15;
}
.page-hero p { color: var(--muted); margin: 0; }

.doc {
  max-width: 820px;
  padding: 48px 20px 88px;
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 44px 0 12px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p,
.doc li { color: #cfd3f2; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table th,
.info-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  width: 38%;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.info-table td { font-weight: 500; word-break: break-word; }
.info-table .native { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }

@media (max-width: 560px) {
  .info-table th,
  .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 2px; border-bottom: 0; font-size: 13px; }
  .info-table td { padding-top: 0; }
}

.note {
  background: rgba(43, 184, 255, 0.08);
  border: 1px solid rgba(43, 184, 255, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  color: #cfe9ff;
  font-size: 15px;
}

.doc-list {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: grid;
  gap: 10px;
}
.doc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0;
}
.doc-list .status { color: var(--muted); font-size: 14px; white-space: nowrap; }

.updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: #161c3c;
  padding: 44px 0 32px;
  font-size: 14px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--text);
  font-size: 14px;
  margin: 0 0 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0 0 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */

.not-found {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
  background:
    linear-gradient(rgba(9, 10, 29, 0.4), var(--bg)),
    url("../img/space-bg.webp") center / cover no-repeat;
}
.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.not-found p { color: var(--muted); margin: 8px 0 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Wordmark shared with the home page */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.wordmark img { width: 28px; height: 28px; }
.wordmark b { font-weight: 600; color: #ffcb5c; }
.brand:hover, .footer-brand a:hover { text-decoration: none; }
.footer-brand .wordmark { margin-bottom: 14px; }
