:root {
  --bg: #f7f4ff;
  --panel: rgba(255, 255, 255, 0.82);
  --card: #ffffff;
  --line: #ddd2ff;
  --soft-line: rgba(221, 210, 255, 0.72);
  --text: #171729;
  --muted: #66677f;
  --purple: #6f50ff;
  --blue: #32a6ff;
  --mint: #dff9ef;
  --warn: #fff4e8;
  --danger: #fff0f3;
  --shadow: 0 18px 40px rgba(65, 43, 143, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(111, 80, 255, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(50, 166, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #faf8ff 0%, #f7f4ff 48%, #f4efff 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

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

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--soft-line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 239, 255, 0.98));
  border: 1px solid rgba(218, 209, 255, 0.92);
  box-shadow: 0 10px 24px rgba(71, 49, 152, 0.12);
}

.brand-mark span {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.lang-switcher button {
  min-width: 44px;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-switcher button.active {
  background: linear-gradient(135deg, var(--purple), #8e76ff);
  color: #fff;
  box-shadow: 0 8px 16px rgba(85, 61, 192, 0.18);
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.nav a.active {
  background: linear-gradient(135deg, var(--purple), #8e76ff);
  border-color: transparent;
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 34px;
  border: 1px solid var(--soft-line);
  background:
    radial-gradient(circle at right top, rgba(111, 80, 255, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 239, 255, 0.95));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(111, 80, 255, 0.12), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.meta-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-row {
  margin-top: 22px;
}

.chip,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.section {
  margin-top: 18px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.card {
  padding: 20px;
  border-radius: 28px;
  border: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(65, 43, 143, 0.06);
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.card p + p,
.card ul,
.card ol {
  margin-top: 10px;
}

.card ul,
.card ol {
  padding-left: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 20px rgba(65, 43, 143, 0.04);
}

.metric-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.metric-card span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
}

.mini-stack {
  display: grid;
  gap: 12px;
}

.callout {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.9);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.3;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--purple), #8f77ff);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(85, 61, 192, 0.18);
}

.button.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.info-banner,
.warn-banner {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.info-banner {
  background: var(--mint);
}

.warn-banner {
  background: var(--warn);
}

.footer {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.stack > * + * {
  margin-top: 14px;
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2,
  .metric-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

  .topbar-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .lang-switcher {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1000px);
    padding-top: 18px;
  }

  .topbar,
  .hero,
  .card,
  .footer {
    border-radius: 24px;
  }

  .hero {
    padding: 24px 20px;
  }

  .hero h1 {
    line-height: 0.98;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav a {
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    font-size: 11px;
    text-align: center;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }
}
