/* ==========================================================
   Waris Apps - shared stylesheet
   Edit colours here once and the whole site updates.
   ========================================================== */

:root {
  --bg: #0b1020;
  --bg-soft: #0f1630;
  --surface: #141c38;
  --surface-2: #1a2447;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf8;
  --muted: #a3acc8;

  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --coral: #fb7185;

  --accent: var(--indigo-light);   /* default accent */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Page themes: Apps = teal, Games = amber */
body.theme-apps  { --accent: var(--teal); }
body.theme-games { --accent: var(--amber); }

*, *::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, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--indigo); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); font-family: var(--font-head);
  font-weight: 700; font-size: 1.2rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.09); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text); width: 44px; height: 44px; border-radius: 12px;
  font-size: 1.4rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--indigo), #4f46e5); color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35); }
.btn-apps    { background: var(--teal);  color: #06231f; box-shadow: 0 8px 24px rgba(45, 212, 191, 0.25); }
.btn-games   { background: var(--amber); color: #2b1d00; box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25); }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.07); }
.btn-play    { background: #fff; color: #0b1020; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(99, 102, 241, 0.30), transparent 60%),
    radial-gradient(700px 450px at 90% 10%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(600px 400px at 70% 100%, rgba(251, 191, 36, 0.12), transparent 60%);
}
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
}
.gradient-text {
  background: linear-gradient(90deg, var(--indigo-light), var(--teal) 55%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Smaller banner used at the top of inner pages */
.page-hero {
  padding: clamp(50px, 8vw, 90px) 0 clamp(30px, 5vw, 50px);
  background: radial-gradient(800px 380px at 10% -20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  border-bottom: 1px solid var(--border);
}
.page-hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 62ch; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.section-head.row {
  max-width: none; display: flex; align-items: end;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
a.card { display: block; color: inherit; }
a.card:hover, .card.hover:hover {
  transform: translateY(-4px); text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

/* App card: structured, informational */
.app-card .app-icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 18px; }
.app-card .tagline { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* Game card: bolder, artwork-led */
.game-card { padding: 0; overflow: hidden; }
.game-card .cover {
  aspect-ratio: 16 / 10; width: 100%; object-fit: cover;
  background: linear-gradient(135deg, var(--indigo), var(--coral) 60%, var(--amber));
}
.game-card .game-body { padding: 22px 26px 26px; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Chips: used for genre or category lists */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 1em; list-style: none; }
.chips li {
  padding: 8px 16px; border-radius: 999px; font-size: 0.92rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}

/* Feature lists with tick marks */
.feature-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 30px; }
.feature-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 50%; font-size: 0.75rem; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent);
}

/* Intro panel shown when a section has no items yet */
.notice-panel {
  text-align: center; padding: clamp(36px, 6vw, 64px);
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.notice-panel p { color: var(--muted); max-width: 60ch; margin-inline: auto; }

/* Two-column layout (text beside an image) */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

/* Screenshot strip */
.screens { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.screens img { height: 460px; width: auto; border-radius: 18px; border: 1px solid var(--border); scroll-snap-align: start; }

/* ---------- Text pages (Privacy Policy, About) ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Subtle entrance animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Tablets and phones ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 12px; border-radius: 10px; }

  .split, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .screens img { height: 380px; }
}