:root {
  --bg: #08090d;
  --fg: #f7f8fa;
  --muted: #7e8595;
  --accent-a: #7dd3fc;
  --accent-b: #a78bfa;
  --accent-c: #f472b6;
  --border: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.04);
  font-family:
    "Inter",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  background-image:
    radial-gradient(
      560px 320px at 50% 92px,
      rgba(167, 139, 250, 0.22) 0%,
      rgba(125, 211, 252, 0.12) 34%,
      transparent 72%
    ),
    radial-gradient(
      80% 54% at 50% 0%,
      rgba(125, 211, 252, 0.14) 0%,
      transparent 62%
    );
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* Language toggle — small flag pills, fixed top-right.
   The active language is full-opacity with a soft inset
   highlight; the other dims to ~55% and brightens on hover. */
.lang-toggle {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.lang-toggle a {
  display: inline-flex;
  padding: 4px;
  border-radius: 5px;
  opacity: 0.5;
  transition:
    opacity 0.15s ease,
    background 0.15s ease;
  border-bottom: 0; /* override footer-link styling that bleeds */
}
.lang-toggle a:hover {
  opacity: 0.9;
}
.lang-toggle a.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  cursor: default;
}
.lang-toggle .flag {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
}

.hero {
  text-align: center;
  margin-bottom: 64px;
}

/* Hero mark — sources from /favicon.svg so the tab icon and the
   on-page logo stay in sync. SVG renders crisp at any size. */
.logo-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b), var(--accent-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

section {
  margin-bottom: 64px;
}

h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.app-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 20px 22px;
}

.app-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.app-card p {
  margin: 0;
  color: rgba(247, 248, 250, 0.86);
}

.app-card p + p {
  margin-top: 12px;
}

.app-card .meta {
  color: var(--muted);
  font-size: 13px;
}

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

footer nav {
  margin-bottom: 8px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted rgba(126, 133, 149, 0.4);
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.sep {
  margin: 0 6px;
  opacity: 0.5;
}

.copyright {
  margin: 6px 0 0;
  font-size: 12px;
}

/* Legal pages */

.legal h1 {
  font-size: 28px;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--fg);
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--muted);
  font-size: 13px;
  margin-top: 0;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  margin: 36px 0 12px;
}

.legal h3 {
  font-size: 14px;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  color: rgba(247, 248, 250, 0.82);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

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

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

.back-link:hover {
  color: var(--fg);
}
