/* Synergy Cloud Systems: the games site.
 *
 * Navy, violet and teal; a split hero, then the games, then where to get help. No web fonts and
 * nothing from another origin; the privacy policy says the site loads nothing from third
 * parties, and this file is half of why that's true.
 */

:root {
  --bg: #14142a;
  --bg-2: #171d38;
  --panel: #1c2445;
  --panel-2: #222c52;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eceaf6;
  --muted: #a8acc8;
  --faint: #7b80a3;
  --primary: #6c5ce7;
  --primary-2: #8b7cff;
  --teal: #00cec9;
  --gold: #fdcb6e;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --accent: var(--primary);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 2000; background: var(--panel); padding: 8px 14px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(20, 20, 42, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 0.98rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--primary); transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-weight: 700;
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; list-style: none; margin: 0;
  padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.menu li a { display: block; padding: 10px 12px; color: var(--text); border-radius: 8px; font-weight: 600; }
.menu li a:hover { background: var(--panel-2); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; line-height: 1; border: 2px solid transparent; transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #5b4bd8; color: #fff; }
.btn-ghost { border-color: var(--primary); color: var(--text); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-play { background: #fff; color: #10131f; }
.btn-play:hover { color: #10131f; background: #e9e9f2; }
.btn-soon {
  background: rgba(255, 255, 255, 0.06); color: var(--muted); border-color: var(--line); cursor: default;
}
.btn-soon:hover { transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
  padding: 90px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.kicker { color: var(--teal); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.hero h1 span { color: var(--primary-2); }
.hero p.lede { font-size: 1.18rem; color: #d5d6ea; max-width: 34em; }
.fan { position: relative; height: 420px; }
.fan img {
  position: absolute; width: 72%; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
/* Three cards fanned down the column: each one's left third stays in view under the next. */
.fan img:nth-child(1) { left: 0; top: 8%; transform: rotate(-6deg); }
.fan img:nth-child(2) { right: 0; top: 30%; transform: rotate(4deg); }
.fan img:nth-child(3) { left: 8%; top: 56%; transform: rotate(-2deg); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title p { color: var(--muted); }

/* Game cards */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.game-card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game-card .cover { aspect-ratio: 1024 / 500; width: 100%; height: auto; object-fit: cover; }
.game-card .body { padding: 0 24px 24px; display: flex; flex-direction: column; flex: 1; }
.game-card .icon {
  width: 76px; height: 76px; border-radius: 18px; margin-top: -38px; border: 3px solid var(--panel);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); background: var(--panel);
}
.game-card h3 { margin-top: 14px; font-size: 1.3rem; }
.game-card h3 a { color: var(--text); }
.game-card p { color: var(--muted); font-size: 0.98rem; }
.game-card .actions { margin-top: auto; }
.game-card .genre {
  color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 10px;
}

/* A game's feature blocks */
.feature-card {
  background: var(--panel); padding: 30px; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card p { color: var(--muted); margin: 0; }

/* Help band */
.help-band {
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
  padding: 44px 48px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(108, 92, 231, 0.35), rgba(0, 206, 201, 0.18)), var(--panel);
  border: 1px solid rgba(139, 124, 255, 0.35);
}
.help-band h2 { margin-bottom: 8px; }
.help-band p { color: #d7d8ee; margin: 0; }

/* ── Game page ──────────────────────────────────────────────────────────── */
.game-hero { position: relative; overflow: hidden; padding: 80px 0 70px; border-bottom: 1px solid var(--line); }
.game-hero .backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.2);
  opacity: 0.38; transform: scale(1.2);
}
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 42, 0.35), var(--bg)); }
.game-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.game-hero .icon { width: 150px; height: 150px; border-radius: 34px; box-shadow: var(--shadow); }
.game-hero .kicker { color: var(--accent); }
.game-hero p.lede { color: #dcdcef; font-size: 1.15rem; max-width: 40em; }
.game-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.game-layout .feature-card { padding: 26px; }
.sections-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sections-grid h3 { color: var(--accent); }
.shots-title { margin-top: 56px; }
.facts {
  position: sticky; top: 96px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.facts h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.facts dl { margin: 0 0 20px; }
.facts dt { font-size: 0.82rem; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 2px 0 14px; font-weight: 600; }
.facts .actions { flex-direction: column; }
.facts .btn { justify-content: center; }
.shots {
  display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 18px; margin-top: 10px;
}
.shots img { border-radius: 12px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--panel); }
.shots.landscape { grid-auto-columns: min(640px, 86%); }
.shots.portrait { grid-auto-columns: min(250px, 62%); }
.note {
  background: rgba(0, 206, 201, 0.08); border: 1px solid rgba(0, 206, 201, 0.3); border-radius: var(--radius);
  padding: 22px 24px; margin: 30px 0 0;
}
.note h3 { color: var(--teal); }
.note p:last-child { margin: 0; }

/* ── Articles: privacy, support, data deletion ──────────────────────────── */
.page-head { padding: 70px 0 30px; background: linear-gradient(135deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); max-width: 46em; }
.article { max-width: 780px; margin: 0 auto; padding: 50px 0 90px; }
.article h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article p, .article li { color: #d3d5ea; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 0.5em; }
.summary {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 10px; padding: 20px 24px; font-size: 1.05rem;
}
.summary p:last-child { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 0.5em 0 1.4em; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
td { color: #d3d5ea; }
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 640px; }
.use { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 0 0 16px; }
.use h3 { margin: 0 0 6px; font-size: 1.1rem; }
.use h3 a { color: var(--text); }
.use > p { margin: 0 0 12px; }
.use:target { border-color: var(--teal); }
.use[id] { scroll-margin-top: 90px; }
.use .scope { color: var(--teal); font-size: 0.92rem; margin: 0 0 8px; }
.use dl { margin: 0; display: grid; grid-template-columns: 11em 1fr; gap: 8px 18px; }
.use dt { color: var(--faint); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 3px; }
.use dd { margin: 0; color: #d3d5ea; }
details.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--primary-2); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 18px; color: #d3d5ea; }
.contact-card {
  display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.contact-card .mail { font-size: 1.25rem; font-weight: 800; color: var(--text); word-break: break-all; }
.contact-card p { margin: 0; color: var(--muted); }
.mail-games { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: #0e0e1d; padding: 60px 0 30px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--teal); }
.legal { border-top: 1px solid var(--line); padding-top: 22px; font-size: 0.85rem; color: var(--faint); }
.legal p { margin: 0 0 4px; }

/* ── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .container, .game-layout { grid-template-columns: 1fr; }
  .fan { height: 300px; max-width: 520px; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .facts { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .menu { display: block; }
  .hero { padding: 56px 0 70px; }
  .fan { height: 230px; }
  .games-grid, .sections-grid { grid-template-columns: 1fr; }
  .use dl { grid-template-columns: 1fr; gap: 2px; }
  .use dd { margin-bottom: 10px; }
  .section { padding: 70px 0; }
  .help-band { grid-template-columns: 1fr; padding: 30px 24px; }
  .game-hero .container { grid-template-columns: 1fr; }
  .game-hero .icon { width: 110px; height: 110px; border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
