/* anon.vision – Digital freedom, privacy, decentralisation */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  --accent: #047857;
  --accent2: #059669;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #0f172a;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --border: #243244;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --accent: #34d399;
  --accent2: #6ee7b7;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

img { max-width: 100%; display: block; }

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}

nav {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.12s ease, transform 0.12s ease;
}

nav a:hover { color: var(--accent2); transform: translateY(-1px); }

.lang-switch {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
}

.lang-switch a { color: var(--accent); text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }

.theme-toggle {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.theme-toggle:hover { transform: translateY(-1px); }

.language-chooser,
.hero,
.page-intro,
article {
  background: var(--surface);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
  margin-bottom: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  align-items: center;
}

.hero--narrow .hero-text { grid-column: 1 / -1; }

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.hero-text p { color: var(--muted); margin-bottom: 1.1rem; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #f9fafb;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.hero-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

.hero-illustration {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

main h2 { font-size: 1.3rem; margin: 1.7rem 0 0.6rem; }
main h3 { font-size: 1.1rem; margin: 1.3rem 0 0.4rem; }
main p { margin-bottom: 0.8rem; color: var(--text); }

.intro { margin-bottom: 2rem; }

.muted { color: var(--muted); }

.faq { margin-top: 2rem; }

.faq-accordion {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question[aria-expanded="true"] { border-bottom: 1px solid var(--border); }

.faq-answer {
  padding: 0 1.1rem 0.9rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.22s ease;
}

.language-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.language-cards .card {
  display: block;
  padding: 1.4rem 1.5rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 96%, var(--bg));
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.language-cards .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  color: var(--muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-columns h3 { font-size: 0.98rem; margin-top: 0; margin-bottom: 0.5rem; }
.footer-columns ul { list-style: none; padding: 0; margin: 0; }
.footer-columns li + li { margin-top: 0.25rem; }

@media (max-width: 768px) {
  body { padding: 1.1rem 1.2rem 2.2rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .footer-columns { grid-template-columns: minmax(0, 1fr); }
}
