:root {
  color-scheme: dark;
  --bg: #050912;
  --text: #ecf2ff;
  --muted: #a9b7d3;
  --brand: #1dc2a4;
  --brand-strong: #0f8e92;
  --card: #0d1528;
  --line: #223458;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #16305f 0%, transparent 40%),
              radial-gradient(circle at 15% 80%, #12304b 0%, transparent 35%),
              var(--bg);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.3;
}

.shape-1 {
  width: 250px;
  height: 250px;
  background: #22c7b6;
  top: -80px;
  right: -50px;
}

.shape-2 {
  width: 220px;
  height: 220px;
  background: #2e71de;
  bottom: -60px;
  left: -30px;
}

.hero,
main,
footer {
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: 3.5rem 0 1rem;
  animation: fadeUp 0.55s ease-out;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.lang-select-wrap {
  position: relative;
  display: inline-flex;
}

.lang-select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.lang-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-52%);
  pointer-events: none;
  color: var(--muted);
  font-size: 0.7rem;
}

.lang-select:hover,
.lang-select:focus {
  border-color: #3f5f95;
}

.lang-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(114, 215, 190, 0.18);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1 {
  margin: 0.8rem 0 0.5rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.08;
}

.subtitle {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
}

.actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 8px 20px rgba(9, 107, 118, 0.34);
}

.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.card-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.links {
  margin-top: 1rem;
}

.links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.links a {
  color: #72d7be;
  font-weight: 700;
}

footer {
  color: var(--muted);
  font-size: 0.93rem;
  padding: 2rem 0 2.5rem;
}

.privacy-main {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.privacy-card {
  max-width: 860px;
  margin: 0 auto;
}

.privacy-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-top: 0;
}

.privacy-card p {
  margin-top: 0;
  margin-bottom: 0.95rem;
}

.privacy-card h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.45rem;
}

.privacy-card a {
  color: #72d7be;
  font-weight: 700;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }

  .lang-select {
    padding: 0.4rem 1.9rem 0.4rem 0.6rem;
  }
}
