:root {
  --bg-primary: #070b12;
  --bg-secondary: #101827;
  --bg-tertiary: #192538;
  --panel: rgba(14, 21, 33, 0.86);
  --accent-blue: #4a9cff;
  --accent-cyan: #21d4fd;
  --accent-teal: #45f6d4;
  --accent-glow: rgba(74, 156, 255, 0.2);
  --text-primary: #f0f5ff;
  --text-secondary: #8b9bb6;
  --text-muted: #4d5f78;
  --border: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(74, 156, 255, 0.4);
  --ok: #4ade80;
  --warn: #fbbf24;
  --radius-card: 16px;
  --radius-button: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 24px 64px rgba(10, 22, 40, 0.45);
  --shadow-btn: 0 0 26px rgba(74, 156, 255, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  background: radial-gradient(circle at 18% -6%, rgba(53, 96, 170, 0.28), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(26, 119, 153, 0.24), transparent 37%),
    linear-gradient(180deg, #060a12 0%, #070d16 50%, #06090f 100%);
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image: linear-gradient(rgba(112, 160, 226, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 160, 226, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  animation: gridDrift 26s linear infinite;
}

body::after {
  background: radial-gradient(circle at 45% -10%, rgba(74, 156, 255, 0.08), transparent 38%);
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(48px, 48px, 0);
  }
}

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

main {
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.topbar.solid {
  background: rgba(7, 11, 18, 0.84);
  backdrop-filter: blur(18px);
  border-color: var(--border);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.25rem;
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  transition: transform 0.25s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.top-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.lang-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text-primary);
}

.lang-switch {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(74, 156, 255, 0.08));
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  min-width: 42px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  min-width: 110px;
  z-index: 8;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(9, 14, 24, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 32px rgba(3, 8, 14, 0.5);
  overflow: hidden;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  padding: 0.52rem 0.72rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
  color: var(--text-primary);
  background: rgba(74, 156, 255, 0.16);
}

.btn {
  border-radius: var(--radius-button);
  padding: 0.78rem 1.3rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-sm {
  padding: 0.58rem 1rem;
}

.btn-primary {
  background: linear-gradient(120deg, #5fb4ff, #56f3d9);
  color: #08131f;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-130%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover::after {
  animation: shine 0.8s ease;
}

@keyframes shine {
  to {
    transform: translateX(130%);
  }
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-btn);
}

.hero {
  min-height: 100vh;
  padding: 160px 4vw 96px;
  position: relative;
  isolation: isolate;
}

.hero-three-canvas,
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-three-canvas {
  z-index: 0;
}

.hero-three-canvas.three-unavailable {
  opacity: 0;
}

.hero-grid-overlay {
  z-index: 1;
  background: radial-gradient(circle at 50% 34%, transparent 0%, rgba(7, 11, 18, 0.48) 55%, rgba(7, 11, 18, 0.8) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
  z-index: 1;
  animation: pulseFloat 6.5s ease-in-out infinite;
}

.hero-glow-a {
  width: 420px;
  height: 420px;
  top: -130px;
  right: 8vw;
  background: rgba(74, 156, 255, 0.26);
}

.hero-glow-b {
  width: 340px;
  height: 340px;
  bottom: 26px;
  left: 10vw;
  background: rgba(69, 246, 212, 0.14);
  animation-delay: 1.8s;
}

@keyframes pulseFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-14px) scale(1.05);
  }
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Keep hero content visible immediately for first paint and JS-disabled cases. */
.hero-grid.reveal {
  opacity: 1;
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 4.8rem);
  line-height: 1.04;
  max-width: 930px;
  text-shadow: 0 10px 40px rgba(8, 20, 38, 0.72);
}

.hero-copy {
  margin-top: 1.2rem;
  max-width: 660px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.kpi-grid {
  margin-top: 2.6rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(74, 156, 255, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(7px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.kpi-card strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
}

.kpi-card span {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.section {
  padding: 120px 4vw;
}

.section-dark {
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.92), rgba(8, 13, 22, 0.74));
}

.section-head {
  max-width: 760px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.section-head p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, rgba(16, 24, 39, 0.95), rgba(14, 23, 37, 0.76));
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--border-accent);
  box-shadow: 0 32px 70px rgba(6, 16, 28, 0.65);
}

.product-card.recommended {
  border-color: rgba(74, 156, 255, 0.65);
  background: linear-gradient(160deg, rgba(20, 42, 72, 0.72), rgba(13, 25, 39, 0.84));
}

.product-media {
  position: relative;
  margin: -0.15rem -0.15rem 0.95rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: radial-gradient(circle at 50% 8%, rgba(94, 177, 255, 0.24), rgba(9, 18, 29, 0.96));
  aspect-ratio: 16 / 10;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.badge {
  display: inline-block;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-accent);
  color: #8fd5ff;
  padding: 0.2rem 0.68rem;
  font-size: 0.72rem;
}

.product-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  background: rgba(23, 35, 63, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(4, 10, 22, 0.28);
}

.product-card h3 {
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.product-position {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.spec-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  align-items: flex-start;
}

.spec-item > span:first-child {
  color: var(--text-muted);
}

.spec-item > .spec-value-text,
.spec-item > .spec-value-options {
  font-family: "JetBrains Mono", monospace;
  text-align: right;
  max-width: 66%;
}

.spec-value-text {
  white-space: normal;
}

.spec-value-options {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.34rem;
}

.spec-option-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(74, 156, 255, 0.24);
  background: rgba(74, 156, 255, 0.08);
  color: #bfe4ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
}

.product-gallery {
  max-width: 1200px;
  margin: 1.2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 0.72rem 0.82rem 0.82rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.feature-list {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(7, 10, 14, 0.72);
  padding: 1.4rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.feature-card:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-card:nth-child(even) .feature-content {
  order: 2;
}

.feature-card:nth-child(even) .feature-demo {
  order: 1;
}

.feature-content h3 {
  font-size: 1.35rem;
}

.feature-content p {
  margin-top: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-demo {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-content: flex-start;
}

.demo-chip {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-accent);
  color: #8ed8ff;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
}

.spec-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.spec-tab {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.spec-tab:hover {
  transform: translateY(-2px);
}

.spec-tab.active {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.16);
}

.table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.spec-table th,
.spec-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
}

.spec-table th {
  background: var(--bg-secondary);
  font-family: "Space Grotesk", sans-serif;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td.best {
  color: var(--ok);
  font-weight: 700;
}

.spec-table .spec-value-options {
  justify-content: flex-start;
  max-width: none;
}

.spec-table .spec-value-text,
.spec-table .spec-option-chip {
  font-size: 0.82rem;
}

.spec-table td.best .spec-option-chip {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08);
  color: #86efac;
}

.case-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--panel);
  padding: 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
}

.case-card h3 {
  font-size: 1.1rem;
}

.case-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

.case-card .badge {
  margin-top: 0.6rem;
}

.social-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.carousel {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 0.7rem;
  align-items: stretch;
}

.carousel-btn {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.carousel-btn:hover {
  border-color: var(--border-accent);
}

.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--panel);
  padding: 1.2rem;
  min-height: 200px;
}

.testimonial-card .stars {
  color: var(--warn);
  letter-spacing: 0.12em;
  font-size: 0.9rem;
}

.testimonial-card blockquote {
  margin: 0.7rem 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.logo-wall {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--panel);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 1rem;
}

.logo-wall span {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  min-height: 58px;
  color: var(--text-secondary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
}

.os-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.os-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--panel);
  padding: 1.3rem;
}

.os-panel p,
.os-panel li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.news-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--panel);
  padding: 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
}

.news-card time,
.news-card .news-tag {
  display: inline-flex;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-card h3 {
  margin: 0.55rem 0;
  font-size: 1.1rem;
}

.news-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 4vw;
  display: grid;
  gap: 1rem;
  background: #060a10;
}

.footer-brand p,
.footer-links a,
.copyright {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.legal-page .topbar {
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(18px);
  border-color: var(--border);
}

.legal-main {
  padding-top: 72px;
}

.legal-hero {
  padding: 84px 4vw 32px;
}

.legal-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}

.legal-back:hover {
  color: var(--text-primary);
}

.legal-head {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.legal-head .legal-back {
  margin-bottom: 1.3rem;
}

.legal-title {
  max-width: 900px;
}

.legal-title h1 {
  max-width: none;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
}

.legal-title p {
  margin: 1rem 0 0;
  max-width: 760px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.03rem;
}

.legal-meta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-accent);
  background: rgba(74, 156, 255, 0.08);
  color: #a7ddff;
  padding: 0.4rem 0.72rem;
  font-size: 0.76rem;
}

.legal-summary {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.legal-summary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, rgba(16, 24, 39, 0.95), rgba(14, 23, 37, 0.76));
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-card);
}

.legal-summary-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.legal-summary-card p {
  margin: 0.45rem 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.87rem;
}

.legal-section {
  padding-top: 28px;
  padding-bottom: 36px;
}

.policy-stack {
  display: grid;
  gap: 1rem;
}

.policy-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--panel);
  padding: 1.25rem;
}

.policy-card h2 {
  font-size: 1.28rem;
  margin-bottom: 0.2rem;
}

.policy-subtitle {
  color: var(--accent-cyan);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

.policy-lang {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(7, 11, 18, 0.58);
  padding: 1rem;
}

.policy-lang-label {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.18rem 0.48rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.policy-lang p,
.policy-lang li {
  color: var(--text-secondary);
  line-height: 1.74;
}

.policy-lang p:first-child {
  margin-top: 0;
}

.policy-lang p:last-child,
.policy-lang ul:last-child {
  margin-bottom: 0;
}

.policy-lang ul {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-footer {
  margin-top: 1.5rem;
}

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

.floating-top-btn {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(111, 133, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(111, 133, 255, 0.38), transparent 48%),
    rgba(9, 13, 24, 0.9);
  box-shadow: 0 22px 56px rgba(3, 5, 14, 0.36);
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
  backdrop-filter: blur(16px);
}

.floating-top-btn:hover {
  border-color: rgba(129, 151, 255, 0.6);
  background:
    radial-gradient(circle at 30% 25%, rgba(129, 151, 255, 0.52), transparent 50%),
    rgba(12, 17, 30, 0.96);
}

.floating-top-btn:focus-visible {
  outline: 2px solid rgba(129, 151, 255, 0.82);
  outline-offset: 3px;
}

.floating-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-top-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

body.has-cookie-banner {
  padding-bottom: 126px;
}

body.has-cookie-banner .floating-top-btn {
  bottom: 118px;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 35;
  padding: 0 18px 18px;
}

.cookie-banner-inner {
  width: min(1240px, calc(100vw - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(111, 133, 255, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(13, 18, 32, 0.97), rgba(8, 11, 20, 0.94)),
    rgba(8, 11, 20, 0.96);
  box-shadow: 0 28px 72px rgba(2, 4, 12, 0.4);
  backdrop-filter: blur(18px);
}

.cookie-banner-copy {
  min-width: 0;
}

.cookie-banner-title {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.cookie-banner-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.66;
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.72rem;
}

.cookie-policy-link {
  white-space: nowrap;
}

.video-dialog {
  border: none;
  padding: 0;
  background: transparent;
}

.video-dialog::backdrop {
  background: rgba(3, 4, 8, 0.8);
}

.dialog-shell {
  position: relative;
  width: min(900px, 92vw);
}

.dialog-close {
  position: absolute;
  right: -10px;
  top: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #0f131f;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

.video-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
}

.video-shell iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070d;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .social-grid,
  .os-grid,
  .feature-card,
  .feature-card:nth-child(even),
  .policy-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "logo actions menu";
    gap: 0.6rem;
    padding-right: 3.2vw;
  }

  .mobile-menu-btn {
    display: block;
    grid-area: menu;
    grid-column: auto;
    grid-row: 1;
  }

  .top-actions {
    grid-area: actions;
    grid-column: auto;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    gap: 0.45rem;
  }

  .lang-switch {
    min-width: 48px;
    padding: 0 0.8rem;
    font-size: 0.78rem;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(6, 10, 16, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 4vw;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .top-actions .btn-sm {
    display: none;
  }

  .logo {
    grid-area: logo;
    grid-column: auto;
    grid-row: 1;
    font-size: 1.1rem;
  }

  .kpi-grid,
  .product-grid,
  .product-gallery,
  .case-grid,
  .news-grid,
  .logo-wall,
  .legal-summary {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 74px 4vw;
  }

  .hero {
    padding-top: 128px;
  }

  .legal-hero {
    padding-top: 64px;
  }

  .policy-card,
  .policy-lang {
    padding: 1rem;
  }

  body.has-cookie-banner {
    padding-bottom: 184px;
  }

  body.has-cookie-banner .floating-top-btn {
    bottom: 170px;
  }

  .floating-top-btn {
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .cookie-banner {
    padding: 0 12px 12px;
  }

  .cookie-banner-inner {
    width: min(100vw - 24px, 100%);
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 0.95rem 1rem;
    border-radius: 18px;
  }

  .cookie-banner-title {
    font-size: 0.95rem;
  }

  .cookie-banner-text {
    font-size: 0.9rem;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
