:root {
  --bg: #080b12;
  --bg-soft: #101624;
  --panel: rgba(18, 24, 38, 0.86);
  --panel-solid: #121926;
  --line: rgba(138, 155, 192, 0.24);
  --line-strong: rgba(138, 155, 192, 0.42);
  --text: #f5f8ff;
  --muted: #9ca9c3;
  --brand: #78a6ff;
  --brand-strong: #4f82f2;
  --ok: #66d9a3;
  --warn: #ffd37a;
  --danger: #ff8b8b;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -12%, rgba(82, 126, 255, 0.28), transparent 60%),
    radial-gradient(900px 460px at 85% 0%, rgba(69, 188, 255, 0.24), transparent 54%),
    linear-gradient(180deg, #080b12 0%, #090d15 42%, #0a0e17 100%);
  font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-shell {
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(140deg, #8eb5ff, #62b9ff);
  box-shadow: 0 0 24px rgba(97, 156, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(119, 170, 255, 0.12);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(17, 25, 39, 0.8);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  min-width: 36px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--text);
}

.lang-btn.active {
  color: #051127;
  background: linear-gradient(120deg, #8db7ff 0%, #6ac2ff 100%);
}

.hero {
  padding: 72px 0 38px;
}

.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  line-height: 1.03;
  font-size: clamp(34px, 6.8vw, 72px);
  letter-spacing: -0.03em;
}

.subtitle {
  margin-top: 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 20px);
}

.hero-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-action {
  margin-top: 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(18, 25, 38, 0.6);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ok);
}

.section {
  margin: 28px 0 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

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

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

@supports not ((-webkit-backdrop-filter: blur(4px)) or (backdrop-filter: blur(4px))) {
  .topbar {
    background: #080b12;
  }

  .panel {
    background: var(--panel-solid);
  }
}

.product-card {
  grid-column: span 12;
}

.single-card {
  max-width: 760px;
}

@media (min-width: 900px) {
  .product-card {
    grid-column: span 8;
  }

  .side-card {
    grid-column: span 4;
  }
}

.panel h2,
.panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.panel p,
.panel li {
  color: var(--muted);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 13px;
  border-radius: 999px;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--brand);
  background: rgba(120, 166, 255, 0.16);
}

.link.solid {
  background: linear-gradient(120deg, var(--brand) 0%, #57b8ff 100%);
  color: #061025;
  border-color: transparent;
}

.link.solid:hover,
.link.solid:focus-visible {
  background: linear-gradient(120deg, #9abfff 0%, #79c8ff 100%);
}

.metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.02);
}

.metric .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric .value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  margin-top: 2px;
}

.doc-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.doc-list li {
  margin-bottom: 6px;
}

.content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.content h3 {
  margin-top: 24px;
  margin-bottom: 9px;
}

.content h3:first-child {
  margin-top: 0;
}

.note {
  margin-top: 14px;
  color: var(--warn);
}

.back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.back:hover,
.back:focus-visible {
  color: var(--text);
}

.site-footer {
  margin-top: 38px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

ul.tight {
  margin: 0;
  padding-left: 20px;
}

ul.tight li {
  margin-bottom: 4px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .topbar-inner {
    height: auto;
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 52px;
  }

  .panel,
  .content {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
