:root {
  --bg: #05070c;
  --surface: rgba(12, 16, 24, 0.82);
  --surface-strong: rgba(16, 22, 32, 0.92);
  --surface-soft: rgba(18, 25, 37, 0.72);
  --text-primary: #f3f6fb;
  --text-secondary: #98a3b6;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.24);
  --accent: #7ab8ff;
  --accent-hover: #9dcfff;
  --radius-xl: 28px;
  --radius-l: 18px;
  --radius-m: 12px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 16% 8%, rgba(66, 153, 225, 0.18), transparent 34%),
    radial-gradient(circle at 84% 6%, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, #070b12 0%, var(--bg) 100%);
  line-height: 1.6;
}

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(18px);
  background: rgba(6, 10, 16, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav-wrap {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 590;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.93rem;
}

.nav a:hover {
  color: var(--text-primary);
}

.lang-toggle {
  --pill-height: 34px;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  background: rgba(17, 23, 34, 0.88);
  color: var(--text-primary);
  border-radius: calc(var(--pill-height) / 2);
  min-height: var(--pill-height);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  font-size: 0.85rem;
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms ease, background-color 260ms ease, color 260ms ease, border-color 260ms ease;
}

.menu-toggle {
  --pill-height: 40px;
  position: relative;
  isolation: isolate;
  display: none;
  border: 1px solid var(--line);
  background: rgba(17, 23, 34, 0.92);
  color: var(--text-primary);
  border-radius: calc(var(--pill-height) / 2);
  min-width: var(--pill-height);
  height: var(--pill-height);
  padding: 0 12px;
  overflow: hidden;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms ease, background-color 260ms ease, color 260ms ease, border-color 260ms ease;
}

.lang-toggle::before,
.menu-toggle::before,
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
  transition: opacity 200ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.lang-toggle::after,
.menu-toggle::after,
.btn::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -42%;
  width: 38%;
  height: 170%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22) 35%, rgba(255, 255, 255, 0.78) 50%, rgba(255, 255, 255, 0.2) 68%, rgba(255, 255, 255, 0));
  transform: translateX(-220%) skewX(-24deg);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: pill-shimmer 5.8s ease-in-out infinite;
}

.menu-toggle::after {
  animation-duration: 6.4s;
}

.lang-toggle:hover::after,
.menu-toggle:hover::after,
.btn:hover::after {
  animation-duration: 4.2s;
}

@keyframes pill-shimmer {
  0%,
  14% {
    transform: translateX(-220%) skewX(-24deg);
    opacity: 0;
  }

  24% {
    opacity: 0.92;
  }

  42% {
    transform: translateX(430%) skewX(-24deg);
    opacity: 0;
  }

  100% {
    transform: translateX(430%) skewX(-24deg);
    opacity: 0;
  }
}

.mobile-menu {
  display: none;
  padding: 0 0 14px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(12, 17, 26, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.98rem;
  padding: 8px 2px;
}

.btn {
  --pill-height: 48px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--pill-height);
  border-radius: calc(var(--pill-height) / 2);
  padding: 0 24px;
  overflow: hidden;
  text-decoration: none;
  font-size: 0.97rem;
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms ease, background-color 260ms ease, color 260ms ease;
}

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

.lang-toggle:active,
.menu-toggle:active,
.btn:active {
  transform: translateY(0) scale(0.972);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 10px 18px rgba(255, 255, 255, 0.08),
    inset 0 -10px 18px rgba(0, 0, 0, 0.06);
}

.lang-toggle:active::before,
.menu-toggle:active::before,
.btn:active::before {
  opacity: 1;
  transform: scale(1.08);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text-primary);
  background: rgba(18, 24, 35, 0.86);
}

.section {
  padding: 72px 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.85rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 14px;
  color: var(--text-secondary);
  max-width: 700px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(9, 13, 20, 0.88), rgba(6, 10, 16, 0.74));
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}


.site-footer {
  padding: 28px 0 42px;
  color: #7f8aa0;
  text-align: center;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 680px) {
  .container {
    width: min(1080px, calc(100% - 32px));
  }

  .nav-wrap {
    height: 60px;
  }

  .nav {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .lang-toggle {
    padding: 6px 12px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
