:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --soft-2: #fbfbfd;
  --line: #d2d2d7;
  --line-soft: #ececf0;
  --inverse: #000000;
  --inverse-muted: #a1a1a6;
  --accent: #0071e3;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(210, 210, 215, 0.55);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  border-radius: 8px;
  padding: 8px 11px;
  color: #424245;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--soft);
}

.site-nav .nav-cta {
  margin-left: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 13px;
}

.site-nav .nav-cta:hover {
  background: #333336;
  color: var(--paper);
}

.site-nav .nav-button {
  border: 0;
  line-height: 1;
}

.menu-button {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 124px) clamp(22px, 5vw, 72px) clamp(52px, 7vw, 84px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 1.03;
  font-weight: 720;
  text-wrap: balance;
}

h2 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.22;
  font-weight: 650;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.no-break {
  display: inline-block;
}

.hero-lede {
  max-width: 660px;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
}

.hero-actions,
.download-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.telegram-link {
  margin-top: 4px;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.platform-row span,
.pill {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--soft-2);
  padding: 8px 13px;
  color: #424245;
  font-size: 13px;
  font-weight: 500;
}

.product-visual {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: min(100%, 430px);
  border: 1px solid #1d1d1f;
  border-radius: 34px;
  background: var(--inverse);
  color: var(--paper);
  padding: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
}

.status-bar,
.node-card,
.stat-row {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  color: var(--inverse-muted);
  font-size: 13px;
}

.status-bar strong {
  color: #f5f5f7;
  font-weight: 600;
}

.connect-orb {
  width: 212px;
  height: 212px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 38px auto;
  position: relative;
  background: #111111;
}

.connect-orb span {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #ffffff;
}

.connect-orb strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
}

.node-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  background: #111111;
}

.node-card.selected {
  background: var(--paper);
  color: var(--ink);
}

.node-card strong {
  font-weight: 650;
}

.node-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.node-card:not(.selected) small {
  color: var(--inverse-muted);
}

.node-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.section {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(66px, 9vw, 120px) clamp(22px, 5vw, 72px);
}

.section-head {
  max-width: 860px;
  margin-bottom: 36px;
}

.intro-band,
.download-strip,
.split-section {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  border-top: 1px solid var(--line-soft);
}

.intro-band {
  background: var(--paper);
}

.intro-copy p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 18px;
}

.intro-cta {
  display: flex;
  justify-content: flex-end;
}

.intro-cta .button {
  min-width: 190px;
}

.feature-grid,
.price-grid,
.download-grid,
.faq-grid,
.legal-grid,
.admin-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.price-card,
.download-card,
.faq-card,
.legal-card,
.auth-card,
.mock-panel,
.admin-card,
.stat-card {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--soft-2);
  padding: 28px;
}

.feature-card {
  min-height: 230px;
}

.feature-card .icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 26px;
}

.price-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

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

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 232px;
}

.price-card.featured {
  background: var(--inverse);
  color: var(--paper);
  border-color: var(--inverse);
}

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

.price-card.featured span,
.price-card.featured p,
.price-card.featured li {
  color: var(--inverse-muted);
}

.price-card strong {
  display: block;
  margin: 20px 0 12px;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1;
  font-weight: 720;
}

.price-grid.compact .price-card {
  padding: 24px;
}

.price-grid.compact .price-card strong {
  font-size: clamp(32px, 3vw, 40px);
  white-space: nowrap;
}

.price-card ul,
.legal-card ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.price-card .button {
  margin-top: auto;
}

.download-strip {
  background: var(--inverse);
  color: var(--paper);
}

.download-strip .eyebrow,
.download-strip p {
  color: var(--inverse-muted);
}

.download-strip .button.secondary {
  color: var(--paper);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

details {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--soft-2);
  padding: 0 22px;
}

summary {
  cursor: pointer;
  padding: 21px 0;
  font-size: 18px;
  font-weight: 620;
}

details p {
  margin-bottom: 21px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 24px;
  padding: 38px clamp(22px, 5vw, 72px);
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.site-footer small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.page-hero {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(68px, 10vw, 126px) clamp(22px, 5vw, 72px) 52px;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero h1 {
  max-width: 920px;
}

.page-hero p {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

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

.download-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.download-card .platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  margin-bottom: 28px;
  font-weight: 650;
}

.download-card .button {
  margin-top: auto;
}

.artifact-status {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.qr-placeholder {
  width: 156px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 12px 0 4px;
  border: 1px dashed #b5b5b8;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #1d1d1f 10px, transparent 10px) 14px 14px / 28px 28px no-repeat,
    linear-gradient(#1d1d1f 10px, transparent 10px) 14px 14px / 28px 28px no-repeat,
    var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.qr-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
}

.apk-qr {
  padding: 8px;
  border-style: solid;
  background: #fff;
}

.qr-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.release-band {
  align-items: start;
}

.release-checklist {
  display: grid;
  gap: 12px;
}

.release-checklist div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--paper);
}

.release-checklist strong {
  font-size: 15px;
}

.release-checklist span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-page {
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) clamp(22px, 5vw, 72px);
}

.auth-card {
  background: var(--paper);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.field textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-code-row .button {
  min-width: 118px;
  min-height: 48px;
  white-space: nowrap;
}

.auth-agreement {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-agreement input {
  margin-top: 3px;
}

.auth-agreement a {
  color: var(--accent);
}

.form-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.form-note a {
  color: var(--accent);
}

.form-message {
  display: none;
  margin-top: 14px;
  border-radius: 14px;
  padding: 13px 14px;
  background: #f5f5f7;
  color: var(--ink);
  font-weight: 500;
}

.form-message.visible {
  display: block;
}

.form-message.error {
  background: #fff2f2;
  color: #b42318;
}

.mock-panel {
  max-width: 520px;
  margin-top: 34px;
  background: var(--inverse);
  color: var(--paper);
}

.mock-panel p {
  color: var(--inverse-muted);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 13px 14px;
  background: #111111;
}

.stat-row strong {
  color: var(--paper);
  font-weight: 600;
}

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

.faq-card {
  position: sticky;
  top: 76px;
  height: fit-content;
}

.legal-grid {
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
}

.legal-card {
  height: fit-content;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-content section {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--soft-2);
  padding: 30px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 650;
}

.dashboard-hero {
  border-bottom: 0;
  padding-bottom: 24px;
}

.dashboard-section {
  padding-top: 30px;
}

.account-inline {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 16px;
  margin-top: 16px;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 22px;
}

.copy-row input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--paper);
  color: var(--muted);
}

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

.mini-stats span {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper);
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.mini-stats strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 20px;
}

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.support-history {
  margin-top: 30px;
}

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

.record-item {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper);
  padding: 14px;
}

.record-item strong,
.record-item span {
  display: block;
}

.record-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-panel {
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: var(--soft-2);
  padding: 26px;
  margin-top: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-head h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  margin-bottom: 0;
}

.search-field,
.inline-form label {
  display: grid;
  gap: 7px;
}

.search-field span,
.inline-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.search-field input,
.inline-form input,
.inline-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0 14px;
  color: var(--ink);
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 230px;
}

.table-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.node-list {
  display: grid;
  gap: 12px;
}

.node-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--paper);
  padding: 16px;
}

.node-item strong,
.node-item span {
  display: block;
}

.node-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.node-item > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.online {
  background: #ecfdf3;
  color: #027a48;
}

.client-shell {
  min-height: calc(100vh - 52px);
  background: #f5f5f7;
  padding: clamp(18px, 4vw, 42px);
}

.client-window {
  max-width: 1280px;
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.08);
}

.client-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--inverse);
  color: var(--paper);
  padding: 30px;
}

.client-sidebar h1 {
  margin-bottom: 18px;
  font-size: 46px;
}

.client-sidebar p,
.client-sidebar .eyebrow {
  color: var(--inverse-muted);
}

.client-account {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px;
}

.client-account span,
.client-account strong {
  display: block;
}

.client-account span {
  color: var(--inverse-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.client-account strong {
  overflow-wrap: anywhere;
}

.client-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(20px, 4vw, 38px);
}

.client-status-card {
  border-radius: 30px;
  background: var(--soft-2);
  border: 1px solid var(--line-soft);
  padding: clamp(22px, 4vw, 34px);
}

.client-status-card.connected {
  background: #f6fff9;
}

.client-status-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.client-status-card h2 {
  margin-bottom: 0;
}

.connect-button {
  width: clamp(172px, 24vw, 230px);
  height: clamp(172px, 24vw, 230px);
  display: grid;
  place-items: center;
  margin: 32px auto;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.client-status-card.connected .connect-button {
  background: var(--accent);
}

.client-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.client-meta span {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper);
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.client-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
}

.client-alert {
  margin: 18px 0 0;
  font-size: 14px;
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 18px;
}

.client-panel-head {
  align-items: center;
}

.client-panel-head h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.client-node-list {
  display: grid;
  gap: 10px;
}

.platform-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.platform-option {
  min-height: 74px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--paper);
  padding: 13px;
  text-align: left;
}

.platform-option.selected {
  border-color: var(--ink);
}

.platform-option strong,
.platform-option span {
  display: block;
}

.platform-option span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.client-node-option {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--paper);
  padding: 14px;
  text-align: left;
}

.client-node-option.selected {
  border-color: var(--ink);
}

.client-node-option:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.client-node-option strong,
.client-node-option small {
  display: block;
}

.client-node-option small {
  margin-top: 4px;
  color: var(--muted);
}

.client-node-option em {
  color: var(--accent);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}

.client-log {
  display: grid;
  gap: 10px;
}

.client-vpn-panel {
  margin-top: 18px;
}

.client-vpn-output {
  margin-top: 16px;
}

.client-vpn-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
}

.client-vpn-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.client-vpn-subscription {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.client-vpn-subscription span {
  color: var(--muted);
  font-size: 0.88rem;
}

.client-vpn-config pre {
  overflow: auto;
  max-height: 360px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f5f5f7;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
}

.client-vpn-qr {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.client-vpn-qr svg {
  width: 100%;
  max-width: 212px;
  height: auto;
}

.log-line {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper);
  padding: 13px 14px;
}

.log-line span,
.log-line strong {
  display: block;
}

.log-line span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.log-line strong {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero,
  .intro-band,
  .download-strip,
  .split-section,
  .auth-page,
  .faq-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .intro-cta {
    justify-content: flex-start;
  }

  .feature-grid,
  .price-grid,
  .download-grid,
  .admin-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .faq-card {
    position: static;
  }

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

  .client-window,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .client-vpn-config {
    grid-template-columns: 1fr;
  }

  .client-window {
    min-height: 0;
  }

  .client-meta {
    grid-template-columns: 1fr;
  }

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

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 52px;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 58px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: var(--paper);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
    font-size: 15px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .section,
  .page-hero {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .feature-grid,
  .price-grid,
  .download-grid,
  .admin-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .price-grid.compact {
    grid-template-columns: 1fr;
  }

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

  .copy-row,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .node-item,
  .node-item > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .client-shell {
    padding: 0;
    background: var(--paper);
  }

  .client-window {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .client-sidebar {
    padding: 24px;
  }

  .connect-button {
    width: 168px;
    height: 168px;
  }

  .platform-selector {
    grid-template-columns: 1fr;
  }

  .device-frame {
    border-radius: 26px;
  }

  .connect-orb {
    width: 172px;
    height: 172px;
  }

  .connect-orb span {
    width: 104px;
    height: 104px;
  }
}
