/* ── Reset & Variables ───────────────────────────── */

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

:root {
  --bg:         #0d1117;
  --surface:    #161b22;
  --surface-2:  #1c2128;
  --teal:       #00838f;
  --teal-light: #4dd0e1;
  --orange:     #f97316;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --border:     #30363d;
  --radius:     12px;
}

/* ── Base ────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--teal-light);
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
}

p { color: var(--text-muted); margin-bottom: 1rem; }

a { color: var(--teal-light); }

.content-page main ul {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-page main ul li { margin-bottom: 0.35rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Nav ─────────────────────────────────────────── */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

/* ── Footer ──────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--teal-light); }

footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* ── Content pages (support, privacy) ───────────── */

.content-page main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.meta,
.subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ── Index: Hero ─────────────────────────────────── */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 131, 143, 0.3);
  padding: 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--teal-light); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

/* ── Index: Store badges ─────────────────────────── */

.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.store-btn img {
  height: 52px;
  width: auto;
  transition: transform 0.15s, opacity 0.15s;
}

/* Google Play badge PNG has baked-in whitespace; negative margin cancels it. */
.store-btn img[alt="Get it on Google Play"] {
  height: 76px;
  margin: -12px -18px;
}

.store-btn:hover img {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* ── Index: Features ─────────────────────────────── */

.features {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Index: Screenshots & lightbox ──────────────── */

.screenshots {
  padding: 2rem 2rem 5rem;
  text-align: center;
}

.screenshots h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.screenshot-thumb {
  height: 700px;
  max-height: 70vh;
  width: auto;
  max-width: calc(100% - 2rem);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  cursor: zoom-in;
  transition: transform 0.15s;
}

.screenshot-thumb:hover { transform: scale(1.02); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

/* ── Support: Contact & FAQ ──────────────────────── */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.contact-card p { margin-bottom: 0.5rem; }

.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal-light);
  text-decoration: none;
}

.contact-email:hover { text-decoration: underline; }

.btn-delete {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-delete:hover { opacity: 0.9; transform: translateY(-1px); }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

summary {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
}

details[open] summary::after { content: '−'; }

details p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 600px) {
  nav { padding: 1rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .content-page main { padding: 2rem 1rem 4rem; }
}
