:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #131722;
  --muted: #5a6272;
  --line: #e4e8ef;
  --primary: #3559e0;
  --primary-strong: #2747c7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 23, 34, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8faff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--text);
  color: #fff;
}

.hero {
  padding: 5rem 0 3rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #e8edff;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

h1 {
  margin: 1rem 0 0.8rem;
  line-height: 1.2;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.02em;
}

.hero-text {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  font-weight: 600;
}

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

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

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.section {
  padding: 1.5rem 0 2.6rem;
}

.section-head {
  margin-bottom: 1rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.04rem;
}

.card p,
.card span,
.card a {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.site-footer .container {
  height: 72px;
  display: flex;
  align-items: center;
}

.site-footer small {
  color: var(--muted);
}

.footer-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.5rem;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    height: auto;
    padding: 1rem 0;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
