:root {
  --navy: #2c2f52;
  --navy-dark: #1c1e38;
  --gold-start: #ffd25a;
  --gold-end: #f5a623;
  --text-light: #f4f5fb;
  --text-muted: #b8bad0;
  --card-bg: #363a63;
  --page-bg: var(--navy-dark);
  --header-border: rgba(255,255,255,0.08);
  --overlay-bg: rgba(10, 11, 22, 0.85);
}

html[data-theme="light"] {
  --text-light: #23264a;
  --text-muted: #5c5f80;
  --card-bg: #ffffff;
  --page-bg: #eef0f7;
  --header-border: rgba(20, 22, 50, 0.08);
  --overlay-bg: rgba(20, 22, 45, 0.85);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-light);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  transition: background 0.2s ease, color 0.2s ease;
}

a { color: inherit; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

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

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card-bg);
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch a {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-muted);
}

.lang-switch a.active {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: #2b2200;
  font-weight: 700;
}

.hero {
  text-align: center;
  padding: 40px 20px 20px;
}

.hero img.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero h1 {
  font-size: 2.2rem;
  margin: 20px 0 8px;
}

.hero p.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 24px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.15s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
}

.app-store-badge img {
  width: 200px;
  height: auto;
  display: block;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qr-code {
  width: 72px;
  height: 72px;
  border-radius: 10px;
}

html[data-theme="light"] .dark-only { display: none; }
html:not([data-theme="light"]) .light-only { display: none; }

.screenshots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  overflow-x: auto;
  padding: 24px 20px 8px;
  scroll-snap-type: x mandatory;
}

.screenshots img {
  scroll-snap-align: center;
  border-radius: 20px;
  height: 380px;
  flex: 0 0 auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.screenshots img:hover {
  transform: translateY(-4px);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox-overlay img {
  width: 92vw;
  height: 88vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

section.features {
  padding: 40px 20px;
}

section.features h2 {
  text-align: center;
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 16px 18px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--gold-start);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

footer.site-footer {
  border-top: 1px solid var(--header-border);
  margin-top: 40px;
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--text-light);
  text-decoration: underline;
}

footer.site-footer .lang-switch {
  justify-content: center;
  margin: 12px 0;
}

.legal {
  padding: 40px 20px 60px;
  line-height: 1.6;
}

.legal h1 {
  font-size: 1.6rem;
}

.legal h2 {
  font-size: 1.15rem;
  color: var(--gold-start);
  margin-top: 28px;
}

.legal p, .legal li {
  color: var(--text-muted);
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
