:root {
  color-scheme: light dark;
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #111827;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --accent-bad: #e11d48;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --container-width: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1f2937, #020617 52%, #020617);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.7),
    transparent
  );
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 0, #a5b4fc, #4f46e5 60%, #22d3ee);
  color: #020617;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logo-text {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  transition: width 0.18s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
}

.lang-switcher a {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lang-switcher a.active {
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  color: #020617;
  font-weight: 600;
}

.hero {
  padding: 48px 0 28px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 620px;
  color: var(--text-muted);
}

.hero-sub {
  font-size: 0.98rem;
  max-width: 640px;
  color: var(--text-muted);
}

.lang-grid {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.lang-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-right: 4px;
}

.lang-label-hidden {
  visibility: hidden;
}

.lang-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  white-space: nowrap;
}

.lang-pill.primary {
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at top left, #4f46e5, #1d4ed8);
  color: #e5e7eb;
  font-weight: 600;
}

.lang-pill:hover {
  text-decoration: none;
  border-color: rgba(129, 140, 248, 0.9);
}

.section {
  padding: 32px 0;
}

.section.alt {
  background: radial-gradient(circle at top right, #111827, #020617 60%);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 26px;
  align-items: flex-start;
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.card {
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card-example {
  position: relative;
  overflow: hidden;
}

.card-example::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(79, 70, 229, 0.2),
    transparent 55%
  );
  pointer-events: none;
}

.checklist {
  padding-left: 1.1rem;
}

.checklist li {
  margin-bottom: 10px;
}

.checklist strong {
  display: block;
  margin-bottom: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-subtle);
}

.tag-good {
  background: var(--accent-soft);
  border-color: rgba(129, 140, 248, 0.7);
}

.tag-bad {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.7);
}

.example-block {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.example-block h4 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.faq-item {
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
}

.faq-item h3 {
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.96);
}

.footer-inner {
  padding: 16px 0 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    display: none;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .lang-pill-row {
    justify-content: flex-start;
  }
}

