:root {
  --bg: #0a1628;
  --bg-card: #111d33;
  --text: #e8eef7;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: rgba(148, 163, 184, 0.15);
  --gradient: linear-gradient(135deg, #004e92 0%, #0a1628 50%, #000428 100%);
  --legal-bg: #f8fafc;
  --legal-text: #0f172a;
  --legal-muted: #475569;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  height: 100%;
}
body {
  /* Privacy: system font stack only (no remote webfont CDN in the browser) */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  overflow: visible;
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}
.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  overflow: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.hero { padding: 72px 0 56px; background: var(--gradient); }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.hero p.lead { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 600px; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.features { padding: 64px 0; }
.features h2 { font-size: 1.75rem; margin-bottom: 8px; }
.features .sub { color: var(--muted); margin-bottom: 40px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: auto;
  flex-shrink: 0;
}
footer .foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
footer .foot-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px 24px;
}
@media (max-width: 800px) {
  footer .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  footer .foot-grid { grid-template-columns: 1fr; }
}
footer .foot-col h4 {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
footer .foot-col ul { list-style: none; padding: 0; margin: 0; }
footer .foot-col li { margin: 0 0 8px; }
footer .foot-col a { color: var(--muted); }
footer .foot-col a:hover { color: var(--accent); }
footer .foot-blurb { color: var(--muted); line-height: 1.5; max-width: 280px; }
footer .foot-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--accent); }
.lang { font-size: 0.85rem; color: var(--muted); }
.lang-select {
  position: relative;
  z-index: 30;
  display: inline-block;
  font-size: 0.85rem;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 3.5rem;
  padding: 7px 10px 7px 12px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
}
.lang-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  margin-left: 2px;
  transition: transform 0.15s ease;
}
.lang-select.is-open .lang-trigger::after {
  transform: rotate(180deg);
}
.lang-trigger:hover,
.lang-trigger:focus-visible,
.lang-select.is-open .lang-trigger {
  border-color: var(--accent);
  outline: none;
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 40;
}
.lang-select.is-open .lang-menu { display: block; }
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.lang-menu a:hover {
  background: rgba(59, 130, 246, 0.16);
  color: #fff;
  text-decoration: none;
}
.lang-menu a.is-active {
  background: rgba(59, 130, 246, 0.22);
  color: #fff;
}
@media (max-width: 640px) {
  .lang-trigger { min-width: 3.25rem; padding: 6px 8px 6px 10px; }
}

/* Legal pages: readable light article on marketing chrome */
body.legal { background: var(--legal-bg); color: var(--legal-text); }
body.legal header {
  background: var(--bg);
  color: var(--text);
  border-bottom-color: var(--border);
}
body.legal footer {
  background: var(--bg);
  border-top-color: var(--border);
  color: var(--muted);
}
body.legal .legal-main { padding: 40px 24px 64px; max-width: 800px; }
body.legal h1 { font-size: 1.85rem; margin: 12px 0 8px; }
body.legal h2 { font-size: 1.15rem; margin-top: 28px; margin-bottom: 8px; }
body.legal .meta, body.legal .lead { color: var(--legal-muted); margin-bottom: 12px; }
body.legal .legal-body p { color: var(--legal-muted); margin: 8px 0; }
body.legal .back, body.legal .legal-nav { font-size: 0.9rem; margin-bottom: 8px; color: var(--legal-muted); }
body.legal .legal-nav a.active { font-weight: 700; color: var(--legal-text); text-decoration: none; }
body.legal .legal-list { margin-top: 24px; padding-left: 1.2rem; }
body.legal .legal-list li { margin: 10px 0; }
