*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f6fa;
  --fg: #0f1423;
  --muted: #5a6480;
  --accent: #1a56f0;
  --accent-hover: #1240c0;
  --border: rgba(0,0,0,0.08);
  --card-bg: rgba(255,255,255,0.7);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

html.home-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(147,197,253,0.42), transparent 34rem),
    radial-gradient(circle at 88% 16%, rgba(196,181,253,0.34), transparent 32rem),
    radial-gradient(circle at 52% 100%, rgba(187,247,208,0.28), transparent 34rem),
    var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body.home-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(147,197,253,0.42), transparent 34rem),
    radial-gradient(circle at 88% 16%, rgba(196,181,253,0.34), transparent 32rem),
    radial-gradient(circle at 52% 100%, rgba(187,247,208,0.28), transparent 34rem),
    var(--bg);
}

body > :not(.blobs) {
  position: relative;
  z-index: 1;
}

/* ── Animated blobs ───────────────────────────────────────── */
.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.blob-1 {
  width: 700px;
  height: 700px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, #93c5fd, #67e8f9);
  animation: blob1 14s infinite alternate ease-in-out;
}

.blob-2 {
  width: 600px;
  height: 600px;
  top: 100px;
  right: -100px;
  background: radial-gradient(circle, #c4b5fd, #a5b4fc);
  animation: blob2 18s infinite alternate ease-in-out;
}

.blob-3 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: 30%;
  background: radial-gradient(circle, #bbf7d0, #ecfccb);
  opacity: 0.32;
  animation: blob3 22s infinite alternate ease-in-out;
}

@keyframes blob1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(80px, 60px) scale(1.1); }
  66%  { transform: translate(-40px, 100px) scale(0.95); }
  100% { transform: translate(60px, -40px) scale(1.05); }
}

@keyframes blob2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-70px, 80px) scale(1.05); }
  66%  { transform: translate(50px, -60px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes blob3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-80px, -60px) scale(1.15); }
  100% { transform: translate(60px, 40px) scale(0.95); }
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────── */
header {
  position: sticky;
  top: 12px;
  z-index: 10;
  padding: 0 16px;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0 8px 0 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--fg);
}

.logo span:first-of-type {
  white-space: nowrap;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  object-fit: cover;
}

.shield {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(15,20,35,0.12);
  border-radius: 100px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shield-beta {
  border-color: rgba(26,86,240,0.18);
  background: rgba(26,86,240,0.1);
  color: var(--accent);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(26,86,240,0.3);
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(26,86,240,0.4);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
  margin-top: 32px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 720px;
  margin: 0 auto;
}

.lead {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Problem ──────────────────────────────────────────────── */
.problem {
  border-top: 1px solid var(--border);
}

.insight-grid {
  margin-bottom: 24px;
}

.sources {
  max-width: 760px;
}

/* ── Sections ─────────────────────────────────────────────── */
section {
  padding: 72px 0;
}

section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 36px;
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding-top: 0;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.icon {
  font-size: 0.86rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  white-space: nowrap;
}

.card h3 {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Companies ────────────────────────────────────────────── */
.companies {
  border-top: 1px solid var(--border);
}

.company-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 24px;
}

.company-grid li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.note {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

.note a {
  color: var(--accent);
  text-decoration: none;
}

.note a:hover { text-decoration: underline; }

/* ── Changelog ────────────────────────────────────────────── */
.changelog {
  border-top: 1px solid var(--border);
}

.log {
  list-style: none;
  margin-top: 32px;
}

.log li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.log li:first-child { border-top: 1px solid var(--border); }

.date {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding-top: 2px;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 24px;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer span {
  font-weight: 700;
  font-size: 0.95rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
}

footer a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.legal-page .blobs {
  display: none;
}

.legal-main {
  padding: 64px 0;
}

.legal-main .container {
  max-width: 820px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.legal-nav a,
.legal-main a {
  color: var(--accent);
  text-decoration: none;
}

.legal-nav a:hover,
.legal-main a:hover {
  text-decoration: underline;
}

.lang-radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
}

.language-toggle label {
  min-width: 118px;
  padding: 7px 14px;
  border-radius: 100px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.language-toggle label:hover {
  color: var(--fg);
}

#lang-en:checked ~ .language-toggle label[for="lang-en"],
#lang-de:checked ~ .language-toggle label[for="lang-de"] {
  background: var(--fg);
  color: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.12);
}

.lang-content {
  display: none;
}

#lang-en:checked ~ .legal-language-content .lang-en,
#lang-de:checked ~ .legal-language-content .lang-de {
  display: block;
}

.legal-main h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.legal-main .updated {
  color: var(--muted);
  margin-bottom: 40px;
}

.legal-main section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.legal-main section:first-of-type {
  border-top: 0;
}

.legal-main h2 {
  font-size: 1.15rem;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.legal-main p + p {
  margin-top: 14px;
}

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

.legal-main li + li {
  margin-top: 8px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  header { top: 8px; padding: 0 12px; }
  header .container { height: auto; min-height: 52px; gap: 10px; padding: 8px 8px 8px 14px; }
  .logo { flex-wrap: wrap; row-gap: 6px; }
  .logo .shield { display: none; }
  .hero { padding: 72px 0 56px; }
  .grid-3,
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .log li { grid-template-columns: 1fr; gap: 4px; }
  footer .container { align-items: flex-start; gap: 12px; flex-direction: column; }
  .footer-links { justify-content: flex-start; gap: 12px; }
  .language-toggle { display: flex; width: 100%; }
  .language-toggle label { flex: 1; min-width: 0; }
  .blob { filter: blur(60px); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}
