/* Synthetic Mind – shared styles for every page */

:root {
  --brand: #00a57d;
  --brand-dark: #008765;
  --brand-soft: #e3f5ef;
  --ink: #1f2433;
  --text: #4a5263;
  --muted: #7a8292;
  --line: #e6e8ec;
  --surface: #f5f7f8;
  --night: #1c1a2e;
  --night-2: #2b2740;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.06), 0 8px 24px rgba(20, 20, 40, 0.08);
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-dark); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 12px; }
h2 { font-size: clamp(22px, 3vw, 28px); margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 24px 0 6px; }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--brand);
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.store:hover { background: #222; }
.store svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.store small { display: block; font-size: 11px; opacity: 0.8; }
.store strong { display: block; font-size: 16px; }

/* ---------- home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #d8d6e6;
}
.hero-mosaic {
  position: absolute;
  inset: -40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: rotate(-6deg) scale(1.15);
  opacity: 0.22;
}
.hero-mosaic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night) 20%, rgba(28, 26, 46, 0.7) 60%, rgba(28, 26, 46, 0.35));
}
.hero .wrap { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { color: #fff; max-width: 640px; }
.hero h1 span { color: var(--brand); }
.hero .lead { max-width: 560px; font-size: 19px; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.stats strong { display: block; color: #fff; font-size: 28px; line-height: 1.1; }
.stats span { font-size: 14px; color: #a9a6bd; }

/* ---------- sections ---------- */

.section { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { margin-top: 0; }
.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- game cards ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 20, 40, 0.08), 0 14px 32px rgba(20, 20, 40, 0.14); }
.game-card .shot { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--night-2); display: block; }
.game-card .body { position: relative; padding: 38px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.game-card .icon {
  position: absolute;
  top: -34px;
  left: 20px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #fff;
}
.game-card h3 { margin: 0 0 2px; font-size: 20px; }
.game-card .meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.game-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 0; list-style: none; }
.platforms li {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- values ---------- */

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.value { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.value h3 { margin-top: 0; }
.value p { margin: 0; font-size: 15.5px; }
.value .num { color: var(--brand); font-weight: 700; font-size: 14px; }

.cta {
  background: var(--night-2);
  color: #d8d6e6;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta h2 { color: #fff; margin: 0 0 4px; }
.cta p { margin: 0; }

/* ---------- game page ---------- */

.game-hero { position: relative; overflow: hidden; background: var(--night); color: #d8d6e6; }
.game-hero .backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
  transform: scale(1.04);
}
.game-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 26, 46, 0.55), var(--night));
}
.game-hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.game-hero .icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); flex-shrink: 0; }
.game-hero h1 { color: #fff; margin-bottom: 6px; }
.game-hero .logo { display: block; width: 100%; max-width: 440px; height: auto; margin: -8px 0 4px -6px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.game-hero .tagline { font-size: 19px; margin: 0 0 6px; color: #eceaf5; }
.game-hero .meta { font-size: 14px; color: #a9a6bd; margin: 0 0 20px; }

.game-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 48px 0 64px; }
.game-main .intro p:first-child { font-size: 19px; color: var(--ink); }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.features li { background: var(--surface); border-left: 4px solid var(--brand); border-radius: 8px; padding: 14px 16px; font-size: 15.5px; }
.features strong { display: block; color: var(--ink); margin-bottom: 2px; }

blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--brand);
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
}
blockquote cite { display: block; font-size: 14px; font-style: normal; color: var(--muted); margin-top: 4px; }

.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  margin: 0 -2px;
}
.gallery a { flex: 0 0 auto; scroll-snap-align: start; }
.gallery img { display: block; height: 260px; width: auto; border-radius: 10px; box-shadow: var(--shadow); background: var(--surface); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 16px 0; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.aside-box { background: var(--surface); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.aside-box h2 { font-size: 17px; margin: 0 0 10px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; }
.aside-box li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.aside-box li:first-child { border-top: 0; }
.aside-box a { text-decoration: none; font-weight: 600; }
.aside-box a:hover { text-decoration: underline; }
.aside-box dl { margin: 0; font-size: 15px; }
.aside-box dt { color: var(--muted); font-size: 13px; margin-top: 8px; }
.aside-box dt:first-child { margin-top: 0; }
.aside-box dd { margin: 0; color: var(--ink); font-weight: 600; }

.back { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }

/* ---------- document pages (policies, manuals, FAQ) ---------- */

.doc-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.doc-head h1 { font-size: clamp(28px, 4vw, 38px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.doc { padding-top: 32px; padding-bottom: 64px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc h3 { font-size: 18px; }
.doc figure { margin: 18px 0; }
.doc figure img { border-radius: 8px; }
.doc table { border-collapse: collapse; margin: 12px 0; }
.doc td, .doc th { border: 1px solid var(--line); padding: 6px 10px; }

.mail-box { background: var(--surface); border-radius: var(--radius); padding: 28px; margin: 24px 0; }
.mail-box p { margin-top: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--brand-soft); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
}
.timeline .year { font-weight: 700; color: var(--brand-dark); margin-right: 8px; }

/* ---------- footer ---------- */

.site-footer { background: var(--night); color: #a9a6bd; padding: 44px 0 28px; font-size: 15px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: #d8d6e6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.social a:hover { background: rgba(255, 255, 255, 0.16); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .game-main { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; gap: 4px; padding-top: 10px; padding-bottom: 8px; }
  .site-nav a { padding: 6px 10px; }
  .site-header { position: static; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero-mosaic { grid-template-columns: repeat(2, 1fr); }
  .stats strong { font-size: 24px; }
  .section { padding: 48px 0; }
  .game-hero .wrap { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 36px; padding-bottom: 36px; }
  .game-hero .icon { width: 96px; height: 96px; border-radius: 22px; }
  .gallery img { height: 200px; }
  .cta { padding: 28px; }
}
