:root {
  --bg: #0f172a;
  --text: #ffffff;
  --muted-300: #d1d5db;
  --muted-400: #9ca3af;
  --muted-500: #6b7280;
  --primary: #0ea5e9;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); }

a { color: inherit; text-decoration: none; }

.bg-background, .bg-dark { background-color: var(--bg); }
.bg-background\/80, .bg-dark\/80 { background-color: rgba(15, 23, 42, 0.8); }
.bg-primary\/20 { background-color: rgba(14, 165, 233, 0.2); }

.text-white { color: #fff; }
.text-primary { color: var(--primary); }
.text-gray-300 { color: var(--muted-300); }
.text-gray-400 { color: var(--muted-400); }
.text-gray-500 { color: var(--muted-500); }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }

.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }

.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }

.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-32 { padding-top: 8rem; }
.pb-24 { padding-bottom: 6rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }

.rounded-lg { border-radius: 0.5rem; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }

.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }
.text-center { text-align: center; }

.backdrop-blur-lg {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.transition { transition: color 0.2s ease; }
.hover\:text-white:hover { color: #fff; }
.hover\:underline:hover { text-decoration: underline; }

.lang-switch { position: relative; padding-bottom: 12px; margin-bottom: -12px; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  color: var(--muted-400);
  user-select: none;
  transition: color .2s ease;
}
.lang-trigger:hover,
.lang-switch:hover .lang-trigger { color: #ffffff; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  display: none;
  gap: 6px;
  min-width: 160px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(6,12,26,0.97);
  box-shadow: 0 16px 34px rgba(0,0,0,.38);
  z-index: 60;
}
.lang-menu a,
.lang-menu span {
  display: block;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
}
.lang-menu a {
  color: var(--muted-400);
  transition: color .2s ease, background .2s ease;
}
.lang-menu a:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.14);
}
.lang-menu span {
  color: #fff;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.1);
}
.lang-switch.open .lang-menu,
    .lang-switch:hover .lang-menu,
    .lang-switch:focus-within .lang-menu { display: grid; }
.lang-mobile { display: none; position: relative; }
.lang-mobile summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted-400);
  user-select: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: color .2s ease;
}
.lang-mobile summary::-webkit-details-marker { display: none; }
.lang-mobile summary:hover,
.lang-mobile[open] summary { color: #fff; }
.lang-mobile .lang-menu { left: auto; right: 0; }

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
}

@media (max-width: 768px) {
  .lang-switch { display: none; }
  .lang-mobile { display: block; }
}
