html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.deskpilot {
  width: 100%;
  overflow-x: hidden;
}

.deskpilot img,
.deskpilot svg {
  max-width: 100%;
}

.symbol-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.control-symbol {
  --size: 240px;
  pointer-events: none;
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: clamp(0.9rem, 0.62rem + 0.7vw, 1.2rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: color-mix(in srgb, var(--primary) 70%, #ffffff 30%);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.42), rgba(255,255,255,0.1) 36%, rgba(255,255,255,0) 58%),
    radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--primary) 64%, transparent), color-mix(in srgb, var(--secondary) 46%, transparent) 72%, transparent),
    color-mix(in srgb, var(--bg) 84%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: inset -10px -14px 26px rgba(0, 0, 0, 0.2), 0 12px 34px rgba(10, 22, 52, 0.2);
  opacity: 0.3;
  will-change: transform;
}

.sym-a { --size: 300px; top: 8%; left: -90px; }
.sym-b { --size: 220px; top: 16%; right: -80px; }
.sym-c { --size: 420px; bottom: -170px; left: 24%; }
.sym-d { --size: 180px; bottom: 20%; right: 16%; }
.sym-e { --size: 250px; top: 56%; left: -90px; }
.sym-f,
.sym-g,
.sym-h,
.sym-i,
.sym-j,
.sym-k {
  opacity: 0.2;
  box-shadow: inset -10px -14px 24px rgba(0, 0, 0, 0.2), 0 14px 44px rgba(0, 0, 0, 0.26);
}
.sym-f { --size: 130px; top: 13%; left: 16%; }
.sym-g { --size: 92px; top: 34%; left: 44%; }
.sym-h { --size: 118px; top: 64%; left: 12%; }
.sym-i { --size: 104px; top: 24%; right: 24%; }
.sym-j { --size: 88px; bottom: 16%; right: 36%; }
.sym-k { --size: 140px; bottom: 8%; left: 58%; }

html[data-theme="dark"] .control-symbol {
  color: #dce9ff;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.36), rgba(255,255,255,0.08) 34%, rgba(255,255,255,0) 56%),
    radial-gradient(circle at 72% 72%, rgba(26, 96, 255, 0.46), rgba(18, 184, 134, 0.28) 70%, transparent),
    rgba(10, 20, 42, 0.92);
  border-color: rgba(120, 162, 255, 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
  opacity: 0.26;
}

html[data-theme="dark"] .sym-f,
html[data-theme="dark"] .sym-g,
html[data-theme="dark"] .sym-h,
html[data-theme="dark"] .sym-i,
html[data-theme="dark"] .sym-j,
html[data-theme="dark"] .sym-k {
  opacity: 0.18;
}

.deskpilot-hero {
  padding-top: 44px;
}

.deskpilot-frame {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  box-shadow: var(--shadow-sm);
}

.deskpilot-visual {
  width: min(100%, 640px);
  margin: 0 auto;
  border-radius: var(--radius);
  display: block;
}

.deskpilot-stat {
  position: static;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.stat-a,
.stat-b {
  margin: 0;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.legal-main {
  padding-bottom: 2rem;
}

.legal-card {
  padding: clamp(1.2rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.legal-list {
  margin-top: 12px;
}

.legal-date {
  margin-top: 14px;
  font-weight: 700;
  color: var(--muted);
}

@media (min-width: 900px) {
  .deskpilot-frame {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .deskpilot-visual {
    grid-column: 1 / -1;
    width: min(100%, 700px);
  }

  .deskpilot-stat {
    min-height: 100%;
  }
}

@media (max-width: 700px) {
  .control-symbol:nth-child(n + 7) {
    display: none;
  }

  .control-symbol {
    opacity: 0.38;
  }

  .deskpilot .container {
    width: min(var(--container), calc(100% - (var(--pad) * 2)));
  }

  .deskpilot .header-actions,
  .deskpilot .hero-actions,
  .deskpilot .contact-actions {
    max-width: 100%;
  }

  .deskpilot .nav-menu .nav-cta {
    max-width: 100%;
    white-space: nowrap;
  }

  .deskpilot-frame {
    grid-template-columns: 1fr;
  }
}
