@import url("./fonts.css");

:root {
  --accent: #ff5c39;
  --accent-strong: #e94d2d;
  --bg-dark: #111014;
  --panel-dark: #1a1922;
  --panel-darker: #15141a;
  --paper: #faf7f3;
  --paper-2: #f3eee6;
  --line: #ece6dd;
  --text: #1a1814;
  --muted: #6b665e;
  --muted-2: #8c887f;
  --green: #2ed47a;
  --white: #ffffff;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

.page {
  overflow-x: hidden;
  background: var(--paper);
}

.container {
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
}

.section {
  scroll-margin-top: 72px;
}

.section-pad {
  padding: clamp(72px, 9vw, 118px) 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.06;
}

.section-lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(255, 92, 57, 0.35);
}

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

.button-dark {
  background: var(--text);
  color: var(--white);
}

.button-light {
  background: var(--paper-2);
  color: var(--text);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 16, 20, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--accent);
}

.brand-name {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a,
.header-login {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover,
.header-login:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-login {
  padding: 9px 14px;
  font-weight: 600;
}

.language-switcher {
  display: none;
}

html[data-i18n-enabled="true"] .language-switcher:not([hidden]) {
  display: block;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease;
}

.language-trigger::after {
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
}

.language-trigger-code {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.language-trigger-name {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.language-modal[hidden] {
  display: none;
}

.language-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: 100vh;
  padding: 24px;
}

.language-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 9, 0.68);
  backdrop-filter: blur(8px);
}

.language-dialog {
  position: relative;
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: var(--panel-dark);
  color: var(--white);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.language-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
}

.language-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-dialog h2 {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

.language-close {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.language-close::before,
.language-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  content: "";
}

.language-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.language-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.language-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.language-option.is-active {
  border-color: rgba(255, 92, 57, 0.44);
  background: rgba(255, 92, 57, 0.12);
}

.language-option-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.language-option-name {
  font-size: 15px;
  font-weight: 800;
}

.language-option-flag {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 24px;
  line-height: 1;
}

.language-option.is-active .language-option-flag {
  box-shadow: 0 0 0 3px rgba(255, 92, 57, 0.2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html.language-modal-open,
html.language-modal-open body {
  overflow: hidden;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(110deg, rgba(255, 92, 57, 0.16), transparent 34%),
    radial-gradient(circle at 70% 20%, rgba(46, 212, 122, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0 42px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 212, 122, 0.18);
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 600;
  line-height: 1.02;
}

.hero h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 540px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  margin-top: 20px;
}

.hero-checks span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 500;
}

.hero-checks b {
  color: var(--accent);
}

.flow-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: var(--panel-dark);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.flow-kicker {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.flow-live span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  animation: cpBlink 1.6s ease-in-out infinite;
}

.flow-stage {
  position: relative;
  height: 164px;
}

.flow-line {
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  z-index: 1;
  height: 2px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 7px, transparent 7px 14px);
  background-size: 14px 2px;
  animation: cpDash 1s linear infinite;
}

.packet {
  position: absolute;
  top: 50%;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: cpFlow 6s linear infinite backwards;
}

.packet.light {
  color: var(--text);
  background: var(--white);
}

.packet.delay-1 {
  animation-delay: 2s;
}

.packet.delay-2 {
  animation-delay: 4s;
}

.flow-node {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 118px;
  transform: translate(-50%, -50%);
}

.flow-node.system {
  left: 12%;
}

.flow-node.cloud {
  left: 50%;
}

.flow-node.printer {
  left: 88%;
}

.node-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #23222d;
}

.cloud .node-icon {
  position: relative;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(255, 92, 57, 0.35);
}

.cloud .node-icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  content: "";
  transform: translate(-50%, -50%) scale(0.6);
  animation: cpPing 2.4s ease-out infinite;
}

.flow-node label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.flow-node.cloud label {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.flow-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.flow-log div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.flow-log strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.flow-log .ok {
  color: var(--green);
}

.flow-log .print {
  color: var(--accent);
}

.spin {
  animation: cpSpin 1.4s linear infinite;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 30px 0;
}

.trust-inner > span {
  flex: none;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 600;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-list span {
  padding: 7px 14px;
  border: 1px solid #e9e3da;
  border-radius: 8px;
  background: var(--white);
  color: #3a352e;
  font-size: 13px;
  font-weight: 700;
}

.features {
  background: var(--white);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.cards-3,
.scenario-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.scenario-card,
.price-card {
  border-radius: 12px;
}

.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(255, 92, 57, 0.1);
}

.feature-card h3,
.scenario-card h3,
.price-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.feature-card p,
.scenario-card p,
.price-card p {
  margin: 0;
  line-height: 1.6;
}

.feature-card p,
.price-card p {
  color: var(--muted);
  font-size: 15.5px;
}

.scenarios {
  background: var(--bg-dark);
}

.scenarios .section-title {
  color: var(--white);
}

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

.scenario-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--panel-dark);
}

.scenario-card h3 {
  color: var(--white);
  font-size: 19px;
}

.scenario-card p {
  flex: 1;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.scenario-card span {
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
}

.developers {
  background: var(--paper);
}

.developers-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1fr);
  gap: 52px;
  align-items: center;
}

.api-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.api-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.api-points span {
  flex: none;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.3;
}

.api-points b {
  display: block;
  font-size: 15.5px;
}

.api-points p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.developers .button-dark {
  margin-top: 26px;
}

.code-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: var(--panel-darker);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.code-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.code-dot.red {
  background: #ff5f57;
}

.code-dot.yellow {
  background: #febc2e;
}

.code-dot.green {
  background: #28c840;
}

.code-path {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}

.code-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 14px 0;
}

.code-tabs button {
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
}

.code-tabs button.is-active {
  border-bottom-color: var(--accent);
  color: var(--white);
}

.code-panel {
  padding: 18px 20px 22px;
}

.code-panel pre {
  overflow-x: auto;
  margin: 0;
  color: #e4e2ec;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

.pricing {
  background: var(--paper);
}

.pricing .section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.price-card.featured {
  border-color: var(--bg-dark);
  background: var(--bg-dark);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.price-badge {
  position: absolute;
  top: 20px;
  right: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.price-card h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.price-card .price-for {
  margin-bottom: 20px;
  color: var(--muted-2);
  font-size: 14px;
}

.price-card.featured .price-for {
  color: rgba(255, 255, 255, 0.55);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price strong {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

.price span {
  color: var(--muted-2);
  font-size: 15px;
}

.featured .price span {
  color: rgba(255, 255, 255, 0.55);
}

.price-note {
  margin: 6px 0 24px;
  color: var(--muted-2);
  font-size: 14px;
}

.featured .price-note {
  margin-top: 8px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
}

.price-card .button {
  width: 100%;
  margin-bottom: 24px;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  display: flex;
  gap: 10px;
  color: #4a453e;
  font-size: 14.5px;
}

.price-card li span {
  color: var(--accent);
}

.price-card.featured li {
  color: rgba(255, 255, 255, 0.8);
}

.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.faq-side {
  position: sticky;
  top: 96px;
}

.faq-side .section-title {
  font-size: clamp(30px, 4vw, 46px);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-button {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
}

.faq-question {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.faq-sign {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.faq-item.is-open .faq-sign {
  background: var(--accent);
  color: var(--white);
}

.faq-answer {
  margin: 0;
  padding: 0 50px 26px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.final-cta::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 92, 57, 0.13), transparent 42%),
    radial-gradient(ellipse 58% 44% at 50% 76%, rgba(255, 92, 57, 0.2), rgba(255, 92, 57, 0.1) 38%, transparent 76%);
}

.final-cta::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: min(34%, 220px);
  content: "";
  background: linear-gradient(to bottom, rgba(17, 16, 20, 0), var(--bg-dark) 78%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 128px) 0;
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  color: var(--white);
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 600;
  line-height: 1.05;
}

.final-cta p {
  max-width: 600px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 19px;
  line-height: 1.55;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.legal-page {
  background: var(--paper);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.legal-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 92, 57, 0.18), transparent 38%),
    radial-gradient(ellipse 50% 46% at 76% 32%, rgba(46, 212, 122, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 44%);
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  max-width: 860px;
  padding: clamp(78px, 10vw, 128px) 0 clamp(68px, 9vw, 108px);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

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

.legal-hero h1 {
  margin: 0;
  color: var(--white);
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.02;
}

.legal-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 19px;
  line-height: 1.62;
}

.legal-updated {
  margin: 26px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.legal-section {
  background: var(--paper);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal-note {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.legal-note span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.legal-content {
  display: grid;
  gap: 0;
  padding: 8px 0 14px;
}

.legal-by-only {
  display: none;
}

html[data-variant="ru"] .legal-global-only {
  display: none;
}

html[data-variant="ru"] .legal-by-only {
  display: grid;
}

html[data-variant="ru"] .legal-layout {
  grid-template-columns: minmax(0, 1fr);
}

.legal-block {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line);
}

.legal-block + .legal-block {
  padding-top: 32px;
}

.legal-block h2 {
  margin: 0 0 14px;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.16;
}

.legal-block h3 {
  margin: 24px 0 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.32;
}

.legal-block p {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.legal-block p + p {
  margin-top: 12px;
}

.legal-block ul {
  display: grid;
  gap: 8px;
  max-width: 840px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.legal-block ul + p,
.legal-block p + ul {
  margin-top: 16px;
}

.legal-by-only .legal-block p,
.legal-by-only .legal-block ul {
  max-width: 920px;
}

.site-footer {
  background: var(--bg-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr));
  gap: 40px;
  padding: 56px 0 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.footer-logo span:last-child {
  color: var(--white);
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.footer-about p {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  line-height: 1.6;
}

.footer-title {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14.5px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom .container {
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13.5px;
}

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0 16px 18px;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  width: min(760px, 100%);
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(17, 16, 20, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.cookie-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.cookie-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.cookie-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-copy a {
  color: var(--accent);
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.cookie-actions button {
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.cookie-actions button:first-child {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-actions button:last-child {
  border: 0;
  background: var(--accent);
  color: var(--white);
}

@keyframes cpFlow {
  0% {
    left: 14%;
    opacity: 0;
  }

  6%,
  20% {
    opacity: 0;
  }

  30%,
  72% {
    opacity: 1;
  }

  88%,
  100% {
    left: 86%;
    opacity: 0;
  }
}

@keyframes cpDash {
  to {
    background-position: 14px 0;
  }
}

@keyframes cpPing {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.55;
  }

  80%,
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

@keyframes cpBlink {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

@keyframes cpSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .hero-inner,
  .developers-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

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

  .faq-side {
    position: static;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .legal-note {
    position: static;
  }
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .header-inner {
    gap: 14px;
  }

  .nav,
  .header-login {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .button {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .language-trigger-name {
    display: none;
  }

  .hero-inner {
    gap: 34px;
    padding: 44px 0 64px;
  }

  .hero h1 {
    font-size: clamp(34px, 10.8vw, 50px);
  }

  .hero-copy,
  .section-lead,
  .final-cta p,
  .legal-lead,
  .legal-block p {
    font-size: 17px;
  }

  .status-pill {
    margin-bottom: 20px;
  }

  .hero-copy {
    margin-top: 20px;
  }

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

  .hero-checks {
    margin-top: 24px;
  }

  .flow-card {
    padding: 18px;
  }

  .flow-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .flow-stage {
    height: 210px;
  }

  .flow-node {
    width: 88px;
  }

  .flow-node.system {
    left: 15%;
  }

  .flow-node.printer {
    left: 85%;
  }

  .packet {
    font-size: 11px;
  }

  .flow-log {
    font-size: 11px;
  }

  .cards-3,
  .scenario-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .developers-grid {
    gap: 36px;
  }

  .code-panel {
    padding: 14px;
  }

  .code-panel pre {
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 16px;
  }

  .hero-actions,
  .final-actions,
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button,
  .final-actions .button,
  .cookie-actions button {
    width: 100%;
  }

  .trust-inner > span {
    flex: 1 1 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .faq-answer {
    padding-right: 0;
  }
}
