:root {
  --color-bg: #F6F5F1;
  --color-panel: #FFFFFF;
  --color-panel-muted: #EFEDE7;
  --color-border: #E3E0D8;
  --color-accent: #F7B23B;
  --color-accent-dark: #D98F12;
  --color-text: #10283B;
  --color-text-soft: #1E3A52;
  --color-muted: #5C6B77;
  --color-success: #2A9D6E;
  --color-warning: #E4931B;
  --color-error: #D64533;
  --color-coral: #E9704A;
  --color-flag-red: #D8323A;
  --color-flag-blue: #1F3F8F;
  --color-flag-white: #FFFFFF;

  --tint-blue: rgba(16, 40, 59, .08);
  --tint-honey: rgba(247, 178, 59, .12);
  --tint-coral: rgba(233, 112, 74, .10);
  --tint-green: rgba(42, 157, 110, .12);
  --shadow-blue: rgba(16, 40, 59, .10);
  --shadow-blue-strong: rgba(16, 40, 59, .18);
  --shadow-blue-deep: rgba(16, 40, 59, .30);
  --shadow-honey: rgba(247, 178, 59, .14);
  --shadow-honey-strong: rgba(247, 178, 59, .34);
  --highlight: rgba(255, 255, 255, .72);
  --highlight-dark: rgba(255, 255, 255, .14);
  --atmosphere: rgba(247, 178, 59, .06);
  --atmosphere-glow: rgba(247, 178, 59, .10);
  --atmosphere-clear: rgba(247, 178, 59, 0);

  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-card: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --header-height: 72px;
  --content-max: 1280px;
  --text-max: 760px;
  --gutter: 32px;
  --section-space: 104px;
  --focus-ring: 2px solid var(--color-accent-dark);
  --transition-fast: 160ms ease;
  --transition-reveal: 620ms cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

html.nav-open {
  overflow: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 920px;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(48% 42% at 22% 46%, var(--atmosphere-glow), var(--atmosphere-clear) 72%),
    linear-gradient(180deg, var(--atmosphere), var(--atmosphere-clear) 68%);
}

main,
section,
article,
header,
footer,
nav,
aside {
  min-width: 0;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
  flex-shrink: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.25em;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
}

code {
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-text);
  color: var(--color-panel);
  font-family: var(--font-mono);
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

pre code {
  overflow-wrap: normal;
  white-space: pre;
}

::selection {
  background: var(--tint-honey);
  color: var(--color-text);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: calc(var(--content-max) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  width: 100%;
  max-width: calc(var(--text-max) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-compact {
  padding-top: 64px;
  padding-bottom: 64px;
}

.flow > * + * {
  margin-top: 1.15em;
}

.no-break {
  white-space: nowrap;
}

.mono,
.price-value,
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--tint-honey);
  content: "";
}

.kicker {
  color: var(--color-coral);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 750;
  line-height: 1.3;
}

h4 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.4;
}

.lede {
  max-width: 36em;
  color: var(--color-muted);
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.65;
}

.lede strong {
  color: var(--color-text);
}

.text-muted {
  color: var(--color-muted);
}

.text-accent {
  color: var(--color-accent-dark);
}

.panel,
.card {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-panel);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 18px 42px var(--shadow-blue);
}

.panel {
  padding: 32px;
}

.card {
  padding: 24px;
}

.badge,
.chip,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
}

.badge {
  gap: 7px;
  padding: 5px 11px;
  background: var(--tint-honey);
  color: var(--color-text);
}

.badge::before {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent-dark);
  content: "";
}

.badge-success {
  background: var(--tint-green);
}

.badge-success::before {
  background: var(--color-success);
}

.chip,
.tag {
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  color: var(--color-muted);
}

.tag-dark {
  border-color: transparent;
  background: var(--tint-blue);
  color: var(--color-text);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  min-width: 24px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

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

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 14px 30px var(--shadow-honey-strong);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-secondary {
  border-color: var(--color-text);
  background: transparent;
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--tint-blue);
}

.btn-dark {
  background: var(--color-text);
  color: var(--color-panel);
  box-shadow: 0 12px 28px var(--shadow-blue);
}

.btn-dark:hover {
  background: var(--color-text-soft);
}

.btn-disabled,
.btn:disabled {
  border-color: var(--color-border);
  background: var(--color-panel-muted);
  color: var(--color-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.reveal {
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal);
}

.reveal.pending {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

/* Shared header */
.site-shell-header,
.topbar {
  position: relative;
  z-index: 50;
  min-height: var(--header-height);
}

.header-inner,
.topbar .wrap {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 36px;
}

.site-brand,
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-display);
}

.site-brand img,
.brand img {
  width: 34px;
  height: 34px;
}

.brand-name {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-local {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav {
  min-width: 0;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-list li + li::before {
  margin-inline: 10px;
  color: var(--color-border);
  font-weight: 800;
  content: "·";
}

.nav-list a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 1px;
  border-bottom: 2px solid transparent;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-text);
}

.nav-list a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  font-weight: 750;
}

.header-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.login-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  color: var(--color-panel);
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 24px var(--shadow-blue);
}

.language-switcher {
  position: relative;
}

.language-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-muted);
  font-size: 13px;
}

.language-button:hover {
  background: var(--tint-blue);
}

.language-menu {
  position: absolute;
  z-index: 65;
  top: calc(100% + 8px);
  right: 0;
  width: 164px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: 0 18px 42px var(--shadow-blue-strong);
  list-style: none;
}

.language-menu a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: var(--tint-honey);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--tint-blue);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
}

.mobile-nav a {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-weight: 650;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: var(--tint-honey);
}

.mobile-language-group {
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.nav-veil {
  display: none;
}

/* Shared footer */
.site-footer {
  margin-top: 96px;
  overflow-x: clip;
  background: var(--color-text);
  color: var(--color-panel);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr .8fr;
  gap: 48px;
  padding-top: 68px;
  padding-bottom: 54px;
}

.footer-brand {
  max-width: 330px;
}

.footer-brand .site-brand {
  color: var(--color-panel);
}

.footer-brand .brand-name {
  color: var(--color-panel);
}

.footer-brand p {
  margin: 20px 0 0;
  color: var(--color-border);
  font-size: 14px;
}

.footer-heading {
  margin-bottom: 16px;
  color: var(--color-panel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.footer-links,
.footer-hot,
.footer-languages {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-hot a,
.footer-languages a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--color-border);
  font-size: 14px;
}

.footer-links a:hover,
.footer-hot a:hover,
.footer-languages a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--highlight-dark);
  color: var(--color-border);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Hero framework */
.hero {
  position: relative;
  overflow-x: clip;
  padding-top: 32px;
  padding-bottom: 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 52fr 48fr;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  min-width: 0;
  padding-left: 8px;
}

.hero-copy h1 {
  margin-top: 18px;
  margin-bottom: 0;
}

.hero-copy .lede {
  margin-top: 22px;
}

.hero-copy .button-row {
  margin-top: 24px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin-top: 18px;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 550;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust span + span::before {
  margin-right: 2px;
  color: var(--color-border);
  content: "·";
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

.platform-row,
.flag-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-row {
  gap: 12px;
  margin-top: 26px;
}

.platform-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 650;
}

.platform-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--tint-blue);
  box-shadow: inset 0 1px 0 var(--highlight);
}

.platform-icon svg {
  width: 20px;
  height: 20px;
}

.platform-item:nth-child(2) .platform-icon {
  background: var(--tint-green);
  color: var(--color-success);
}

.platform-item:nth-child(3) .platform-icon {
  background: var(--tint-honey);
  color: var(--color-accent-dark);
}

.platform-item:nth-child(4) .platform-icon {
  background: var(--color-panel-muted);
}

.platform-item:nth-child(5) .platform-icon {
  background: var(--tint-coral);
  color: var(--color-coral);
}

.flag-row {
  min-height: 40px;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.flag-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 650;
}

.flag-item svg,
.route-flag {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--color-panel);
  border-radius: 50%;
  box-shadow: 0 4px 10px var(--shadow-blue);
}

/* Hero device */
.hero-device {
  position: relative;
  width: 100%;
  height: 560px;
  min-width: 0;
}

.device-plate-wrap {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 0;
  width: 560px;
  height: 512px;
  max-width: calc(100% - 40px);
  filter: drop-shadow(0 24px 28px var(--shadow-blue-strong));
}

.device-plate {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(158deg, var(--color-text-soft) 0%, var(--color-text) 58%);
  box-shadow: inset 0 1px 0 var(--highlight-dark);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.device-triangle {
  position: absolute;
  z-index: 0;
  bottom: -14px;
  left: -26px;
  width: 150px;
  height: 118px;
  max-width: 30vw;
  background: var(--color-coral);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.device-polygon {
  position: absolute;
  z-index: 0;
  bottom: -24px;
  left: 100px;
  width: 196px;
  height: 74px;
  max-width: 36vw;
  background: var(--color-panel-muted);
  clip-path: polygon(0 100%, 100% 100%, 80% 0, 26% 0);
}

.client-window {
  position: absolute;
  z-index: 2;
  top: 52px;
  left: 28px;
  width: 576px;
  max-width: calc(100% - 30px);
  height: 456px;
  border-radius: var(--radius-card);
  background: var(--color-panel);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 30px 60px -18px var(--shadow-blue-deep),
    0 8px 20px var(--shadow-blue);
}

.window-chrome {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 18px;
  padding-inline: 16px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--color-panel-muted);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
}

.window-tabs {
  display: flex;
  gap: 18px;
  margin-left: 8px;
}

.window-tabs span {
  position: relative;
  padding-block: 12px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 550;
}

.window-tabs .is-on {
  color: var(--color-text);
  font-weight: 750;
}

.window-tabs .is-on::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  content: "";
}

.connection-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 650;
}

.live-dot {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-success);
}

.live-dot::after {
  position: absolute;
  inset: -3px;
  border: 1.5px solid var(--color-success);
  border-radius: 50%;
  content: "";
  animation: live-breathe 3s ease-in-out infinite;
}

.window-body {
  display: grid;
  height: 412px;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
  padding: 18px;
}

.route-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.route-line {
  display: flex;
  min-width: 0;
  height: 54px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.route-line.is-current {
  background: var(--tint-honey);
  box-shadow:
    inset 0 0 0 2px var(--color-accent),
    0 10px 24px var(--shadow-honey);
}

.route-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.route-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-tags {
  display: flex;
  min-width: 0;
  gap: 5px;
}

.route-tags .tag {
  min-height: 19px;
  padding: 3px 6px;
  font-size: 9px;
  white-space: nowrap;
}

.route-placeholder {
  width: 34px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--color-border);
}

.connection-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.connection-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: .04em;
}

.connection-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.arc-panel {
  padding: 10px 8px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 6px 16px var(--shadow-blue);
}

.arc-panel svg {
  width: 100%;
  height: 102px;
}

.arc-caption {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 11px;
  text-align: center;
}

.arc-ghost {
  fill: none;
  stroke: var(--color-border);
  stroke-linecap: round;
  stroke-width: 6;
}

.arc-line {
  fill: none;
  stroke: var(--color-text);
  stroke-linecap: round;
  stroke-width: 2;
}

.arc-node {
  fill: var(--color-text);
  stroke: var(--color-panel);
  stroke-width: 3;
}

.arc-core,
.arc-spark {
  fill: var(--color-accent);
}

.arc-spark {
  animation: arc-travel 12s linear infinite;
}

.arc-spark-glow {
  fill: var(--color-accent);
  opacity: .28;
  animation: arc-travel 12s linear infinite;
}

.arc-label {
  fill: var(--color-muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 650;
}

.connection-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.connected-button {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 12px 24px var(--shadow-honey-strong);
  font-size: 14px;
  font-weight: 800;
}

.fact-pills {
  display: flex;
  gap: 6px;
}

.fact-pills .chip {
  min-width: 0;
  flex: 1;
  padding-inline: 5px;
  color: var(--color-text-soft);
  font-size: 10px;
  white-space: nowrap;
}

.device-status {
  position: absolute;
  z-index: 4;
  right: -8px;
  bottom: -4px;
  width: 248px;
  max-width: 48%;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: var(--color-accent);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 22px 44px var(--shadow-honey-strong),
    0 8px 16px var(--shadow-blue);
}

.device-status strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.device-status small {
  display: block;
  margin-top: 6px;
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 650;
}

.status-flag {
  position: absolute;
  top: -20px;
  right: -18px;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 3px solid var(--color-panel);
  border-radius: 50%;
  background: var(--color-panel);
  box-shadow: 0 8px 18px var(--shadow-blue-strong);
}

.status-flag svg {
  width: 40px;
  height: 40px;
}

.device-mail-chip {
  position: absolute;
  z-index: 5;
  top: 6px;
  left: 54px;
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 10px;
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 12px 28px var(--shadow-honey-strong),
    0 2px 6px var(--shadow-blue);
  font-size: 12px;
  font-weight: 750;
}

.device-mail-chip svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

.device-mini-card {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 556px;
  width: 126px;
  max-width: 22%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 14px 30px var(--shadow-blue-strong);
}

.device-mini-card b {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
}

.device-mini-card span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 650;
}

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

.stat-card {
  display: flex;
  min-width: 0;
  min-height: 96px;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-panel);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 14px 32px var(--shadow-blue);
}

.stat-value {
  flex-shrink: 0;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1;
}

.stat-value em {
  color: var(--color-accent-dark);
  font-style: normal;
}

.stat-divider {
  width: 1px;
  height: 36px;
  flex-shrink: 0;
  background: var(--color-border);
}

.stat-label {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

#server-status {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 32px;
  overflow: hidden;
}

.tilt,
.tilt-card {
  transform: rotate(.35deg);
}

@keyframes live-breathe {
  0%,
  100% {
    opacity: .6;
    transform: scale(1);
  }
  50% {
    opacity: .1;
    transform: scale(1.55);
  }
}

@keyframes arc-travel {
  0% {
    opacity: 0;
    transform: translate(18px, 70px);
  }
  6% {
    opacity: 1;
  }
  22% {
    transform: translate(62px, 41px);
  }
  42% {
    transform: translate(108px, 30px);
  }
  62% {
    transform: translate(154px, 41px);
  }
  79% {
    opacity: 1;
    transform: translate(198px, 70px);
  }
  84%,
  100% {
    opacity: 0;
    transform: translate(198px, 70px);
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .nav-veil.is-open {
    position: fixed;
    z-index: 40;
    inset: var(--header-height) 0 0;
    display: block;
    background: var(--shadow-blue-strong);
  }

  .mobile-nav.is-open {
    position: fixed;
    z-index: 60;
    top: var(--header-height);
    right: var(--gutter);
    left: var(--gutter);
    display: block;
    max-height: calc(100dvh - var(--header-height) - 16px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-panel);
    box-shadow: 0 22px 54px var(--shadow-blue-strong);
    overscroll-behavior: contain;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-device {
    width: min(680px, 100%);
    height: 520px;
    transform: scale(.9);
    transform-origin: left top;
  }

  .hero-copy {
    padding-left: 0;
  }

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

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-space: 72px;
  }

  h1 {
    font-size: clamp(32px, 9.5vw, 40px);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero {
    padding-top: 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-device {
    height: 360px;
    transform: scale(.58);
    transform-origin: left top;
  }

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

  .platform-row {
    gap: 10px;
  }

  .platform-item {
    font-size: 12px;
  }

  .flag-row {
    gap: 12px;
  }

  .footer-main {
    gap: 36px 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .no-break {
    white-space: normal;
  }

  .header-inner,
  .topbar .wrap {
    gap: 8px;
  }

  .brand-name {
    font-size: 18px;
  }

  .language-switcher {
    display: none;
  }

  .login-link {
    min-height: 38px;
    padding-inline: 15px;
    font-size: 13px;
  }

  .mobile-language-group {
    display: grid;
  }

  .button-row .btn {
    width: 100%;
  }

  .hero-device {
    width: 650px;
    max-width: none;
    height: 318px;
    transform: scale(.49);
  }

  .hero-trust span + span::before {
    display: none;
  }

  .panel,
  .card {
    padding: 20px;
  }

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

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

  .tilt,
  .tilt-card {
    transform: none;
  }

  [class*="halo"],
  [class*="ornament"],
  [class*="decor"] {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .hero-device {
    transform: scale(.445);
  }

  .header-tools {
    gap: 6px;
  }

  .login-link {
    padding-inline: 12px;
  }

  .stat-card {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal,
  .reveal.pending {
    opacity: 1;
    transform: none;
  }

  .arc-spark,
  .arc-spark-glow {
    opacity: 1;
    transform: translate(198px, 70px);
  }
}