/* Base tokens, header, buttons, carousel, cards and footer shared by every page.
   Measurements copy the original WordPress (Sasby/Elementor) site at 1440px. */
:root {
  --blue: #007aff;
  --blue-soft: #4ea3ff;
  --ink: #122428;
  --text: #000;
  --grey: #54595f;
  --line: #e9edf2;
  --container: 1320px;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-head: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --font-alt: Roboto, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 400 16px/1.75 var(--font-body); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px; }
.container.narrow { max-width: 1064px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.only-mobile { display: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 0 90px rgba(0, 0, 0, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 90px; max-width: 1320px; }
.brand img { width: 192px; }
.main-nav > ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 16px; line-height: 22px; color: rgb(15, 15, 15); padding: 34px 0; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.has-sub { position: relative; }
.sub-menu { position: absolute; top: 100%; right: 0; width: 250px; list-style: none; margin: 0; padding: 12px 0; background: #fff; border-radius: 0; box-shadow: 0 13px 48px rgba(0, 0, 0, .15); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 8px 24px; font-weight: 500; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #000; transition: .25s; }

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; line-height: 28px; padding: 11px 30px; border-radius: 30px; transition: background .2s, transform .2s; }
.btn:hover { background: #0062cc; transform: translateY(-2px); }
.play-badge img { width: 200px; }

/* Carousel (driven by site.js) */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-track > * { flex: 0 0 calc(100% / var(--per-view, 3)); padding: 0 12px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: #d5dce6; cursor: pointer; transition: .3s; }
.carousel-dots button.active { width: 22px; background: var(--blue); }

/* App card (home carousel + related apps) */
.app-card { display: block; }
.app-card img { width: 100%; aspect-ratio: 820 / 600; object-fit: cover; }
.app-card-body { display: block; border-left: 2px solid var(--blue); padding: 14px 18px 22px; }
.app-card h3 { font: 600 24px/1.3 var(--font-head); color: var(--ink); }
.see-more { color: var(--blue); font-size: 18px; font-weight: 500; }
.app-card:hover h3 { color: var(--blue); }

/* Footer */
.site-footer { padding-top: 20px; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 80px; border-radius: 10px; color: #fff;
  background-color: var(--blue);
  background-image: radial-gradient(circle at 15% 120%, rgba(255, 255, 255, .12) 0 30%, transparent 31%), radial-gradient(circle at 85% -40%, rgba(255, 255, 255, .1) 0 35%, transparent 36%); }
.footer-cta > div { flex: 0 1 556px; }
.footer-cta p { margin: 0; font-weight: 700; font-size: 16px; line-height: 22.4px; }
.footer-cta h2 { color: #fff; font-size: 40px; line-height: 50px; }
.footer-cta-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--blue); font-weight: 600; font-size: 20px; padding: 14px 24px; border-radius: 3px; transition: transform .2s; }
.footer-cta-btn:hover { transform: translateY(-2px); }
.footer-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 80px 0 60px; }
.footer-col h3 { font-size: 22px; line-height: 36px; font-weight: 700; margin: 0 0 22px; }
.footer-col h3:not(:first-child) { margin-top: 44px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 18px; font-size: 16px; line-height: 25.6px; color: var(--ink); }
.footer-col li a:hover, .footer-bottom a:hover { color: var(--blue); }
.support-label { margin: 0; }
.support-email { display: block; font: 500 20px/1.6 var(--font-head); color: var(--ink); margin-bottom: 16px; }
.discord-badge { display: inline-block; margin-bottom: 40px; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 20px 0; font-size: 16px; }
.footer-bottom p { margin: 0; }

/* Fixed install button (home, mobile only) */
.mobile-install-btn { position: fixed; z-index: 40; left: 50%; bottom: 3%; transform: translateX(-50%); width: 266px; height: 50px; line-height: 50px; text-align: center;
  background: var(--blue); color: #fff; font-size: 20px; font-weight: 600; border-radius: 30px; box-shadow: 0 6px 20px rgba(0, 122, 255, .35); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 90px; left: 0; right: 0; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); display: none; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; }
  .main-nav a { padding: 10px 0; }
  .sub-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; }
  .footer-cta { flex-direction: column; align-items: flex-start; padding: 32px; }
  .footer-cta h2 { font-size: 32px; line-height: 40px; }
}
@media (max-width: 767px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: block; }
  .brand img { width: 160px; }
  .footer-widgets { grid-template-columns: 1fr; gap: 0; padding: 50px 0 30px; }
  .footer-col li { margin-bottom: 9px; }
  .footer-col + .footer-col h3:first-child { margin-top: 44px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}
