:root {
  --text-0: #f3f7ff;
  --text-1: rgba(224, 235, 255, 0.86);
  --text-muted: rgba(184, 202, 236, 0.72);
  --surface: rgba(7, 13, 24, 0.78);
  --surface-border: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--text-0);
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(3, 7, 15, 0.58);
}

.topbar {
  width: min(1024px, 100%);
  margin: 0 auto;
  padding: 1.2rem 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 40;
}

.home-link {
  text-decoration: none;
  color: var(--text-1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.86rem;
}

.language-dropdown {
  position: relative;
  z-index: 50;
}

.language-toggle {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-1);
  border-radius: 999px;
  min-width: 96px;
  padding: 0.42rem 0.74rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 12, 22, 0.95);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 60;
}

.language-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-option {
  width: 170px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.56rem;
}

.language-option:hover,
.language-option.selected {
  background: rgba(255, 255, 255, 0.1);
}

.flag-icon {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
}

.flag-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.container {
  width: min(1024px, 100%);
  margin: 0 auto;
  padding: 1.2rem;
  flex: 1;
}

.card {
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  backdrop-filter: blur(8px);
  padding: clamp(1rem, 2.8vw, 1.7rem);
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
}

.subtitle {
  margin-top: 0.7rem;
  color: var(--text-muted);
}

.updated {
  margin-top: 1rem;
  color: var(--text-1);
  font-size: 0.95rem;
}

.section-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.85rem;
}

section {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.95rem;
}

section h2 {
  margin: 0;
  font-size: 1.05rem;
}

section p {
  margin: 0.55rem 0 0;
  color: var(--text-1);
  line-height: 1.55;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.85rem 1.2rem;
}

.footer-row {
  width: min(1024px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-row a {
  color: var(--text-1);
  text-decoration: none;
}
