/* ==========================================================
   THEME VARIABLES - change these to restyle the whole site
   ========================================================== */
:root {
  color-scheme: dark; /* Makes scrollbars and form controls dark too */

  --color-primary: #818cf8;       /* Lighter indigo for links/accents on dark backgrounds */
  --color-primary-dark: #c7d2fe;
  --color-button: #4f46e5;        /* Button background (good contrast with white text) */
  --color-button-hover: #4338ca;
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --color-bg: #0b1120;
  --color-bg-alt: #111827;
  --color-surface: #1f2937;       /* Cards and raised elements */
  --color-border: #334155;
  --radius: 12px;
  --max-width: 1100px;
  --header-height: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover { color: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, #1e1b4b 0%, var(--color-bg) 100%);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ===== Store Buttons ===== */
.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
  padding: 0.6rem 1.25rem;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.15s, background 0.15s;
}

.store-btn:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.store-btn small { font-size: 0.7rem; opacity: 0.8; }
.store-btn span { font-size: 1.1rem; font-weight: 600; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { margin: 0 0 0.5rem; }
.feature-card p { margin: 0; color: var(--color-muted); }

/* ===== Screenshots ===== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.screenshots-grid img { border-radius: var(--radius); }

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  display: none; /* jQuery slides this open */
  padding-bottom: 1.25rem;
  color: var(--color-muted);
}

.faq-answer p { margin: 0; }

/* ===== Download ===== */
.download { text-align: center; }

/* ===== Footer ===== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--color-muted); text-decoration: none; }
.footer-links a:hover { color: var(--color-primary); }

/* ===== Simple Content Pages (Privacy, Support, 404) ===== */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.page-content h1 { font-size: 2.25rem; margin-top: 0; }
.page-content h2 { margin-top: 2.5rem; }
.page-content .updated { color: var(--color-muted); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-button);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.btn:hover { background: var(--color-button-hover); }

/* ===== Fade-in Animation (only when JS is running) ===== */
.js .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open { display: flex; }

  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
}