/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:    #0a1020;
  --bg-mid:     #121e38;
  --bg-surface: #1a2a4a;
  --bg-card:    #1e3050;
  --text:       #e8edf5;
  --text-muted: #8a9bb8;
  --accent:     #38d4f8;
  --accent-alt: #5ba8f5;
  --purple:     #9b6bdb;
  --gradient:   linear-gradient(135deg, #38d4f8, #5ba8f5, #9b6bdb);
  --font:       -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w:      1120px;
  --radius:     12px;
  --radius-sm:  8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-alt); }

img { max-width: 100%; height: auto; display: block; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 16, 32, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 212, 248, .08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.nav-brand svg { width: 36px; height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

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

.lang-toggle {
  background: var(--bg-surface);
  border: 1px solid rgba(56, 212, 248, .15);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-family: var(--font);
}

.lang-toggle:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 212, 248, .15);
}

.store-btn.mac {
  background: var(--bg-surface);
  border: 1px solid rgba(56, 212, 248, .2);
  color: var(--text);
}

.store-btn.ios {
  background: var(--gradient);
  color: #0a1020;
}

.store-btn svg { width: 22px; height: 22px; }

/* ── Screenshots ─────────────────────────────────────── */
.screenshots {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.screenshot-mac {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.screenshot-ios {
  width: 220px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

/* ── Features ────────────────────────────────────────── */
.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.features-heading {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid rgba(56, 212, 248, .06);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color .3s, transform .3s;
}

.feature-card:hover {
  border-color: rgba(56, 212, 248, .15);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 212, 248, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ── Footer ──────────────────────────────────────────── */
.footer {
  margin-top: auto;
  border-top: 1px solid rgba(56, 212, 248, .06);
  background: var(--bg-mid);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: .85rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: .85rem;
}

/* ── Legal Pages ─────────────────────────────────────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  flex: 1;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent-alt);
}

.legal p, .legal li {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal a { color: var(--accent); }

/* ── Support / FAQ ───────────────────────────────────── */
.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(56, 212, 248, .06);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}

.faq-item summary:hover { background: var(--bg-card); }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-box {
  background: var(--bg-surface);
  border: 1px solid rgba(56, 212, 248, .1);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

.contact-box h2 {
  color: var(--text);
  margin-top: 0;
}

.contact-box a {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .screenshot-ios { width: 180px; }

  .nav-links { gap: 16px; }

  .footer-inner { flex-direction: column; text-align: center; }

  .hero { padding: 48px 24px 40px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .nav-links a { font-size: .8rem; }
  .store-buttons { flex-direction: column; align-items: center; }
  .hero h1 { font-size: 2rem; }
}

/* ── Utilities ───────────────────────────────────────── */
[data-lang="de"] [data-i18n-de] { display: block; }
[data-lang="de"] [data-i18n-en] { display: none; }
[data-lang="en"] [data-i18n-en] { display: block; }
[data-lang="en"] [data-i18n-de] { display: none; }

/* Inline elements need inline display */
span[data-i18n-de], a[data-i18n-de], summary[data-i18n-de],
span[data-i18n-en], a[data-i18n-en], summary[data-i18n-en],
h1[data-i18n-en], h1[data-i18n-de],
h2[data-i18n-en], h2[data-i18n-de],
h3[data-i18n-en], h3[data-i18n-de],
p[data-i18n-en], p[data-i18n-de],
li[data-i18n-en], li[data-i18n-de] {
  display: none;
}

[data-lang="en"] span[data-i18n-en],
[data-lang="en"] a[data-i18n-en],
[data-lang="en"] h1[data-i18n-en],
[data-lang="en"] h2[data-i18n-en],
[data-lang="en"] h3[data-i18n-en],
[data-lang="en"] p[data-i18n-en],
[data-lang="en"] li[data-i18n-en] { display: inline; }

[data-lang="de"] span[data-i18n-de],
[data-lang="de"] a[data-i18n-de],
[data-lang="de"] h1[data-i18n-de],
[data-lang="de"] h2[data-i18n-de],
[data-lang="de"] h3[data-i18n-de],
[data-lang="de"] p[data-i18n-de],
[data-lang="de"] li[data-i18n-de] { display: inline; }

/* Block-level i18n for div/section containers */
div[data-i18n-en], section[data-i18n-en],
div[data-i18n-de], section[data-i18n-de] { display: none; }
[data-lang="en"] div[data-i18n-en],
[data-lang="en"] section[data-i18n-en] { display: block; }
[data-lang="de"] div[data-i18n-de],
[data-lang="de"] section[data-i18n-de] { display: block; }

/* summary needs special display */
[data-lang="en"] summary[data-i18n-en] { display: flex; }
[data-lang="de"] summary[data-i18n-de] { display: flex; }

/* FAQ details wrapper */
details[data-i18n-en], details[data-i18n-de] { display: none; }
[data-lang="en"] details[data-i18n-en] { display: block; }
[data-lang="de"] details[data-i18n-de] { display: block; }
